/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (EYE-FRIENDLY LIGHT MODE)
   ========================================================================== */
:root {
    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', 'Prompt', sans-serif;
    --font-body: 'Prompt', 'Inter', sans-serif;

    /* Light Theme Colors (Cozy & Eye-Friendly) */
    --bg-dark: #f5f7fb;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --bg-sidebar: rgba(255, 255, 255, 0.82);
    
    --primary-h: 262;
    --primary-s: 80%;
    --primary-l: 52%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.08);
    --primary-hover: hsl(var(--primary-h), var(--primary-s), 46%);

    --success-h: 142;
    --success-s: 70%;
    --success-l: 35%;
    --success: hsl(var(--success-h), var(--success-s), var(--success-l));
    --success-glow: hsla(var(--success-h), var(--success-s), var(--success-l), 0.08);

    --warning-h: 24;
    --warning-s: 90%;
    --warning-l: 45%;
    --warning: hsl(var(--warning-h), var(--warning-s), var(--warning-l));
    --warning-glow: hsla(var(--warning-h), var(--warning-s), var(--warning-l), 0.08);

    --danger-h: 350;
    --danger-s: 80%;
    --danger-l: 48%;
    --danger: hsl(var(--danger-h), var(--danger-s), var(--danger-l));
    --danger-glow: hsla(var(--danger-h), var(--danger-s), var(--danger-l), 0.08);

    --info-h: 195;
    --info-s: 85%;
    --info-l: 40%;
    --info: hsl(var(--info-h), var(--info-s), var(--info-l));

    /* UI Text Shades (Optimized for high readability in Light Mode) */
    --text-white: #0f172a; /* Dark slate for prominent titles */
    --text-main: #334155;  /* Slate-700 for regular text */
    --text-muted: #627d98; /* Softer blue-grey for secondary/meta text */
    --text-dark: #9fb3c8;  /* Lighter grey for placeholders */

    /* Glassmorphism Specs (Light Theme) */
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 10px 30px -5px rgba(103, 118, 142, 0.06), 0 1px 3px -1px rgba(103, 118, 142, 0.03);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}
::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   DECORATIVE BACKGROUND ORBS (SOFT PASTELS FOR LIGHT MODE)
   ========================================================================== */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}
.orb-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 80%);
    top: -10vw;
    left: -10vw;
}
.orb-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, hsl(295, 80%, 80%) 0%, transparent 80%);
    bottom: -15vw;
    right: -10vw;
}
.orb-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--info) 0%, transparent 80%);
    top: 30%;
    left: 40%;
}

/* ==========================================================================
   GLASSMORPHISM UTILITIES
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 1);
    background: var(--bg-card-hover);
    box-shadow: 0 14px 40px -5px rgba(103, 118, 142, 0.12);
}

/* ==========================================================================
   APP LAYOUT CONTAINER
   ========================================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* ==========================================================================
   SIDEBAR COMPONENT (CLEAN LIGHT DECORATION)
   ========================================================================== */
.sidebar {
    width: 300px;
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), hsl(252, 80%, 65%));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.logo-icon {
    color: #ffffff;
    width: 22px;
    height: 22px;
}

.brand-text h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-white);
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Profile Card in Sidebar */
.profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(103, 118, 142, 0.03);
    margin-bottom: 28px;
}

.profile-avatar-container {
    position: relative;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.status-indicator {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    bottom: 2px;
    right: 2px;
    border: 2px solid #ffffff;
}

.status-indicator.online {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success-glow);
}

.profile-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 3px;
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-supervisor {
    background: var(--danger-glow);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.badge-developer {
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.badge-designer {
    background: hsla(var(--warning-h), var(--warning-s), var(--warning-l), 0.08);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.badge-qa {
    background: hsla(var(--info-h), var(--info-s), var(--info-l), 0.08);
    color: var(--info);
    border: 1px solid rgba(6, 182, 212, 0.15);
}

/* Sidebar Navigation Links */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin: 16px 0 8px 10px;
}

.sidebar-nav ul {
    list-style: none;
    margin-bottom: 24px;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.03);
}

.nav-link.active {
    background: linear-gradient(90deg, var(--primary-glow) 0%, transparent 100%);
    border-left: 3px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active i {
    color: var(--primary);
}

/* Switcher List Style */
.switcher-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.switcher-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.82rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
    box-shadow: 0 2px 6px rgba(103, 118, 142, 0.02);
}

.switcher-btn img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.switcher-btn:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 10px rgba(103, 118, 142, 0.05);
}

.switcher-btn.active {
    background: #ffffff;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.sidebar-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 18px;
    margin-top: auto;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

.sidebar-footer span {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2px;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 32px;
    overflow-y: auto;
    height: 100vh;
}

/* Header Top Bar */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-shrink: 0;
}

.header-left h1 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.header-left p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(103, 118, 142, 0.02);
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}

.date-widget i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* Button Classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.02);
}

.btn-danger {
    background: var(--danger-glow);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.btn-danger:hover {
    background: var(--danger);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--danger-glow);
}

/* ==========================================================================
   VIEW SECTIONS MANAGEMENT
   ========================================================================== */
.view-section {
    display: none;
    flex-grow: 1;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-section.active-view {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   DASHBOARD VIEW COMPONENTS
   ========================================================================== */
/* Statistics Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
    flex-shrink: 0;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 22px;
    height: 22px;
}

.icon-total {
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.icon-pending {
    background: hsla(var(--info-h), var(--info-s), var(--info-l), 0.08);
    color: var(--info);
    border: 1px solid rgba(2, 132, 199, 0.1);
}

.icon-progress {
    background: var(--warning-glow);
    color: var(--warning);
    border: 1px solid rgba(234, 88, 12, 0.1);
}

.icon-completed {
    background: var(--success-glow);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.1);
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
}

/* Dashboard Columns Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
    flex-shrink: 0;
}

.dashboard-col {
    padding: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
}

.badge {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 20px;
}

.badge-info {
    background: rgba(2, 132, 199, 0.08);
    color: var(--info);
    border: 1px solid rgba(2, 132, 199, 0.15);
}

.badge-danger {
    background: var(--danger-glow);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

/* Team progress rows */
.team-progress-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-progress-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.team-progress-row img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-progress-details {
    flex-grow: 1;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.member-name {
    color: var(--text-white);
    font-weight: 600;
}

.task-stats-small {
    color: var(--text-muted);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--info) 100%);
    box-shadow: 0 0 6px var(--primary-glow);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overdue alert items */
.overdue-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.overdue-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(220, 38, 38, 0.03);
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.overdue-task-item:hover {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.2);
}

.overdue-task-info h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.overdue-task-info p {
    font-size: 0.72rem;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.overdue-task-info i {
    width: 12px;
    height: 12px;
}

.overdue-assignee {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.overdue-assignee img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.overdue-assignee span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.no-overdue-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.no-overdue-placeholder i {
    width: 32px;
    height: 32px;
    color: var(--success);
    margin-bottom: 10px;
}

.no-overdue-placeholder p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Recent Tasks Table Container */
.recent-tasks-card {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.flex-header {
    flex-wrap: wrap;
    gap: 16px;
}

/* Filter components */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    width: 220px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01);
}

.search-box i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.85rem;
    width: 100%;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-dark);
}

.form-select {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

.form-select:hover {
    color: var(--text-white);
    border-color: rgba(0, 0, 0, 0.15);
}

.form-select option {
    background-color: #ffffff;
    color: var(--text-main);
}

/* Table Style */
.scrollable-y {
    overflow-y: auto;
    flex-grow: 1;
    max-height: 500px;
    padding-right: 4px;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.premium-table th {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.premium-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    font-size: 0.88rem;
    vertical-align: middle;
}

.premium-table tbody tr {
    transition: var(--transition-fast);
}

.premium-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.01);
}

.table-task-info h4 {
    color: var(--text-white);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.table-task-info p {
    color: var(--text-muted);
    font-size: 0.78rem;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-assignee-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-assignee-cell img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.table-assignee-cell span {
    font-weight: 500;
}

.table-date-cell {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.table-date-cell div {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}

.table-date-cell i {
    width: 12px;
    height: 12px;
}

.table-date-cell .due-indicator {
    font-size: 0.72rem;
    font-weight: 500;
}

.table-date-cell .due-indicator.overdue {
    color: var(--danger);
}

.table-date-cell .due-indicator.pending {
    color: var(--warning);
}

/* Badges styling */
.badge-priority {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-priority.priority-high {
    background: var(--danger-glow);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.badge-priority.priority-medium {
    background: var(--warning-glow);
    color: var(--warning);
    border: 1px solid rgba(234, 88, 12, 0.1);
}

.badge-priority.priority-low {
    background: var(--success-glow);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.1);
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.badge-status.status-todo {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.badge-status.status-in-progress {
    background: rgba(234, 88, 12, 0.05);
    color: var(--warning);
    border: 1px solid rgba(234, 88, 12, 0.1);
}

.badge-status.status-completed {
    background: rgba(22, 163, 74, 0.05);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.1);
}

/* Action Buttons Cell */
.actions-cell {
    display: flex;
    gap: 6px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    color: var(--text-white);
    background: rgba(0, 0, 0, 0.02);
}

.btn-icon-edit:hover {
    color: var(--primary);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.btn-icon-delete:hover {
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.2);
    box-shadow: 0 4px 10px var(--danger-glow);
}

.btn-icon i {
    width: 14px;
    height: 14px;
}

/* Placeholder Row for Empty Table */
.empty-table-placeholder {
    text-align: center !important;
    padding: 60px 20px !important;
    color: var(--text-muted);
}

.empty-table-placeholder i {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

/* ==========================================================================
   KANBAN BOARD VIEW COMPONENTS
   ========================================================================== */
.board-filters {
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    flex-shrink: 0;
}

.board-filters .filter-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.board-filters .filter-right .badge {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--primary);
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* Kanban Columns Outer Grid */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex-grow: 1;
    height: 0;
    min-height: 500px;
}

.kanban-column {
    display: flex;
    flex-direction: column;
    background: rgba(240, 244, 248, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
}

.column-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.4);
}

.column-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

.dot-todo { color: var(--text-muted); }
.dot-progress { color: var(--warning); }
.dot-completed { color: var(--success); }

.column-title h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    flex-grow: 1;
}

.task-count {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    background: #ffffff;
    color: var(--text-muted);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Cards Container under Column */
.kanban-cards-container {
    padding: 16px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 150px;
    transition: background-color 0.2s ease;
}

/* Dragover background state */
.kanban-cards-container.drag-over {
    background-color: rgba(124, 58, 237, 0.03);
    outline: 2px dashed rgba(124, 58, 237, 0.2);
    outline-offset: -4px;
}

/* Kanban Individual Task Card */
.task-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 4px 10px rgba(103, 118, 142, 0.03);
    cursor: grab;
    transition: var(--transition-smooth);
    user-select: none;
}

.task-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(103, 118, 142, 0.08);
}

.task-card:active {
    cursor: grabbing;
}

.task-card.dragging {
    opacity: 0.5;
    transform: scale(0.96);
    border: 1px dashed var(--primary);
}

/* Card Header block */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-top .badge-priority {
    padding: 2px 8px;
    font-size: 0.65rem;
}

.card-actions-wrapper {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition-fast);
}

.task-card:hover .card-actions-wrapper {
    opacity: 1;
}

.card-btn-action {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.card-btn-action:hover {
    color: var(--text-white);
    background: rgba(0, 0, 0, 0.01);
}

.card-btn-edit:hover {
    color: var(--primary);
    border-color: rgba(124, 58, 237, 0.2);
}

.card-btn-delete:hover {
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.2);
}

.card-btn-action i {
    width: 12px;
    height: 12px;
}

/* Card Title & Desc */
.task-card h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 6px;
    line-height: 1.4;
}

.task-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer info */
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.card-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.card-date.warning {
    color: var(--warning);
}

.card-date.danger {
    color: var(--danger);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.card-date i {
    width: 12px;
    height: 12px;
}

.card-assignee {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-assignee img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-assignee span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.no-tasks-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: var(--text-dark);
    text-align: center;
    border: 1px dashed rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.005);
}

.no-tasks-card-placeholder i {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
}

.no-tasks-card-placeholder p {
    font-size: 0.75rem;
    margin: 0;
}

/* ==========================================================================
   LIST VIEW COMPONENTS
   ========================================================================== */
.list-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tasks-list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.list-task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(103, 118, 142, 0.02);
    transition: var(--transition-smooth);
}

.list-task-row:hover {
    border-color: rgba(124, 58, 237, 0.15);
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(103, 118, 142, 0.05);
}

.list-task-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
    max-width: 50%;
}

.list-meta-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.list-row-status-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-dark);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.list-row-status-btn:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.list-row-status-btn.checked {
    border-color: var(--success);
    background: var(--success);
    color: #ffffff;
}

.list-row-status-btn.checked i {
    width: 12px;
    height: 12px;
}

.list-task-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.list-task-content p {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.list-task-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.list-assignee {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.list-assignee img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.list-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.list-date i {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   MODAL COMPONENT (ADD & EDIT TASK)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    width: 580px;
    max-width: 90vw;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -10px rgba(103, 118, 142, 0.25);
    overflow: hidden;
}

.animate-modal {
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header-icon {
    width: 20px;
    height: 20px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close:hover {
    color: var(--text-white);
}

.modal-body {
    padding: 24px;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.half-width {
    width: 50%;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-white);
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-dark);
}

textarea.form-control {
    resize: none;
}

/* Input Icon Wrapper */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.input-icon-wrapper input {
    padding-left: 38px;
}

/* Priority Button Group Styling */
.priority-badge-group {
    display: flex;
    gap: 8px;
}

.priority-option {
    width: 33.33%;
    cursor: pointer;
}

.priority-option input {
    display: none;
}

.priority-btn {
    display: block;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.priority-btn:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.01);
}

.priority-option input:checked + .btn-low {
    background: var(--success-glow);
    color: var(--success);
    border-color: var(--success);
    box-shadow: 0 4px 10px var(--success-glow);
}

.priority-option input:checked + .btn-medium {
    background: var(--warning-glow);
    color: var(--warning);
    border-color: var(--warning);
    box-shadow: 0 4px 10px var(--warning-glow);
}

.priority-option input:checked + .btn-high {
    background: var(--danger-glow);
    color: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 4px 10px var(--danger-glow);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 10px;
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT
   ========================================================================== */
.toast-card {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(103, 118, 142, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-card i {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.toast-content h5 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 2px;
}

.toast-content p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS (MOBILE FRIENDLY)
   ========================================================================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .kanban-board {
        grid-template-columns: 1fr;
        height: auto;
        gap: 24px;
    }
    .kanban-column {
        height: 450px;
    }
}

@media (max-width: 860px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        height: auto;
    }
    .main-content {
        padding: 20px;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .half-width {
        width: 100%;
    }
    .list-task-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .list-task-left {
        max-width: 100%;
    }
    .list-task-right {
        width: 100%;
        justify-content: space-between;
    }
    .recent-tasks-card .flex-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .recent-tasks-card .filter-bar {
        width: 100%;
    }
    .recent-tasks-card .search-box {
        width: 100%;
    }
    .recent-tasks-card select {
        width: 100%;
    }
}
