/* ============================================
   TaskFlow – Main Stylesheet
   A premium, modern design system
   ============================================ */

/* ── CSS Custom Properties ──────────────────── */
:root {
    /* Primary palette */
    --primary:        #00509e;
    --primary-light:  #1a6ab1;
    --primary-dark:   #003b75;
    --primary-subtle: rgba(0, 80, 158, 0.08);

    /* Accent */
    --accent:         #2ea64a;
    --accent-light:   #3bc95c;

    /* Semantic colors */
    --success:    #10b981;
    --warning:    #f59e0b;
    --danger:     #ef4444;
    --info:       #3b82f6;

    /* Priority colors */
    --priority-low:      #10b981;
    --priority-medium:   #3b82f6;
    --priority-high:     #f59e0b;
    --priority-critical: #ef4444;

    /* Status colors */
    --status-pending:     #f59e0b;
    --status-in-progress: #3b82f6;
    --status-completed:   #10b981;
    --status-on-hold:     #8b5cf6;

    /* Neutrals */
    --bg-body:       #f1f5f9;
    --bg-card:       #ffffff;
    --bg-sidebar:    #0f172a;
    --bg-navbar:     #ffffff;
    --bg-input:      #f8fafc;
    --text-primary:  #0f172a;
    --text-secondary:#64748b;
    --text-muted:    #94a3b8;
    --border-color:  #e2e8f0;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:     0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.12);
    --shadow-glow:   0 0 30px rgba(0, 80, 158, 0.15);

    /* Layout */
    --sidebar-w:   270px;
    --navbar-h:    64px;
    --mobile-nav-h:68px;
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   20px;
    --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Mode ──────────────────────────────── */
[data-bs-theme="dark"] {
    --bg-body:       #0b1120;
    --bg-card:       #1e293b;
    --bg-sidebar:    #0f172a;
    --bg-navbar:     #1e293b;
    --bg-input:      #334155;
    --text-primary:  #f1f5f9;
    --text-secondary:#94a3b8;
    --text-muted:    #64748b;
    --border-color:  #334155;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.2);
    --shadow-md:     0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.35);
}

[data-bs-theme="dark"] .top-navbar {
    background: var(--bg-navbar);
    border-bottom-color: var(--border-color);
}

[data-bs-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #0c1526 0%, #151d32 100%);
}

[data-bs-theme="dark"] .stat-card {
    background: var(--bg-card);
}

[data-bs-theme="dark"] .card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: var(--bg-card);
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-color);
    --bs-table-striped-bg: rgba(255,255,255,0.02);
    --bs-table-hover-bg: rgba(255,255,255,0.04);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .mobile-bottom-nav {
    background: var(--bg-navbar);
    border-top-color: var(--border-color);
}

[data-bs-theme="dark"] .dropdown-menu {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background: rgba(99,102,241,0.1);
}

[data-bs-theme="dark"] .notif-dropdown {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection {
    background-color: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .modal-content {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* ── Base Reset ─────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ============================================
   TOP NAVBAR
   ============================================ */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-h);
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1040;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition);
    position: relative;
}

.btn-icon:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    line-height: 1.3;
}

/* Nav Search */
.nav-search {
    display: flex;
    align-items: center;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0 14px;
    gap: 8px;
    transition: var(--transition);
}

.nav-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.nav-search i { color: var(--text-muted); font-size: 14px; }

.nav-search input {
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-primary);
    width: 200px;
    outline: none;
}

.nav-search input::placeholder { color: var(--text-muted); }

/* User menu button */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: transparent;
    transition: var(--transition);
}

.user-menu-btn:hover {
    border-color: var(--primary-light);
    background: var(--primary-subtle);
}

.user-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-name-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* sidebar toggle */
.sidebar-toggle {
    font-size: 24px;
    color: var(--text-primary);
    padding: 4px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--navbar-h);
    bottom: 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #0f172a 0%, #1a2542 100%);
    z-index: 1035;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1034;
    backdrop-filter: blur(4px);
}

/* Mobile: hide sidebar by default */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-backdrop.show { display: block; }
}

.sidebar-nav {
    flex: 1;
    padding: 20px 14px 10px;
}

.sidebar-section {
    margin-bottom: 16px;
}

.sidebar-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    padding: 0 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    color: rgba(255,255,255,0.6);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    position: relative;
}

.sidebar-link i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.sidebar-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(236,72,153,0.15) 100%);
    box-shadow: inset 3px 0 0 var(--primary-light);
}

.sidebar-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    min-width: 22px;
    text-align: center;
}

/* Sidebar user card */
.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.15);
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.sidebar-user-role {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: var(--navbar-h);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding-bottom: 30px;
    transition: margin 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: calc(100vh - var(--navbar-h));
}

@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
        padding-bottom: calc(var(--mobile-nav-h) + 20px);
    }
}

/* ── Page header ────────────────────────────── */
.page-header {
    padding: 28px 28px 0;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 8px;
    font-size: 13px;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

.page-header .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

/* ── Content container ──────────────────────── */
.content-area {
    padding: 0 28px;
}

@media (max-width: 575.98px) {
    .page-header { padding: 20px 16px 0; }
    .content-area { padding: 0 16px; }
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-h);
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1050;
    padding: 0 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

.mobile-nav-item i { font-size: 20px; }

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.create {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff !important;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    margin-top: -14px;
    box-shadow: 0 4px 15px rgba(99,102,241,0.35);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 20px;
    font-weight: 700;
    font-size: 15px;
}

.card-body { padding: 20px; }

/* ── Stat Cards (Dashboard) ─────────────────── */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card.primary::before   { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.stat-card.success::before   { background: linear-gradient(90deg, var(--success), #34d399); }
.stat-card.warning::before   { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.stat-card.danger::before    { background: linear-gradient(90deg, var(--danger), #f87171); }
.stat-card.info::before      { background: linear-gradient(90deg, var(--info), #60a5fa); }
.stat-card.accent::before    { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.stat-icon.primary   { background: rgba(99,102,241,0.1);  color: var(--primary); }
.stat-icon.success   { background: rgba(16,185,129,0.1);  color: var(--success); }
.stat-icon.warning   { background: rgba(245,158,11,0.1);  color: var(--warning); }
.stat-icon.danger    { background: rgba(239,68,68,0.1);   color: var(--danger);  }
.stat-icon.info      { background: rgba(59,130,246,0.1);  color: var(--info);    }
.stat-icon.accent    { background: rgba(236,72,153,0.1);  color: var(--accent);  }

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table {
    margin: 0;
    font-size: 14px;
}

.table thead th {
    background: var(--bg-body);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 12px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.table tbody tr:hover {
    background: var(--primary-subtle);
}

/* ============================================
   BADGES / LABELS
   ============================================ */
.badge-priority,
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Priority badges */
.badge-priority.low      { background: rgba(16,185,129,0.1);  color: var(--priority-low); }
.badge-priority.medium   { background: rgba(59,130,246,0.1);  color: var(--priority-medium); }
.badge-priority.high     { background: rgba(245,158,11,0.1);  color: var(--priority-high); }
.badge-priority.critical { background: rgba(239,68,68,0.1);   color: var(--priority-critical); }

/* Status badges */
.badge-status.pending     { background: rgba(245,158,11,0.1);  color: var(--status-pending); }
.badge-status.in_progress { background: rgba(59,130,246,0.1);  color: var(--status-in-progress); }
.badge-status.completed   { background: rgba(16,185,129,0.1);  color: var(--status-completed); }
.badge-status.on_hold     { background: rgba(139,92,246,0.1);  color: var(--status-on-hold); }

/* Role badge */
.badge-role {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.badge-role.admin    { background: rgba(99,102,241,0.1);  color: var(--primary); }
.badge-role.it_staff { background: rgba(16,185,129,0.1);  color: var(--success); }
.badge-role.employee { background: rgba(100,116,139,0.1); color: var(--text-secondary); }

/* ============================================
   BUTTONS (custom overrides)
   ============================================ */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(99,102,241,0.25);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.35);
    color: #fff;
}

.btn-outline-custom {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    background: transparent;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-subtle);
}

.btn-danger-custom {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(239,68,68,0.25);
}

.btn-danger-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239,68,68,0.35);
    color: #fff;
}

.btn-sm-custom {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

/* ============================================
   FORM CONTROLS
   ============================================ */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-input);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    background-color: var(--bg-card);
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ============================================
   TASK CARD
   ============================================ */
.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.task-card.priority-low::before      { background: var(--priority-low); }
.task-card.priority-medium::before   { background: var(--priority-medium); }
.task-card.priority-high::before     { background: var(--priority-high); }
.task-card.priority-critical::before { background: var(--priority-critical); }

.task-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.task-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.task-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.task-card-meta i {
    margin-right: 3px;
}

.task-card-actions {
    display: flex;
    gap: 6px;
}

.task-card-actions .btn {
    padding: 4px 8px;
    font-size: 13px;
}

/* ============================================
   NOTIFICATION DROPDOWN
   ============================================ */
.notif-dropdown {
    width: 360px;
    max-height: 400px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 0;
    overflow: hidden;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.notif-header h6 {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
}

.notif-list {
    max-height: 280px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.notif-item.unread {
    background: var(--primary-subtle);
}

.notif-item:hover {
    background: rgba(99,102,241,0.04);
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-icon.task_assigned  { background: rgba(59,130,246,0.1); color: var(--info); }
.notif-icon.status_update  { background: rgba(16,185,129,0.1); color: var(--success); }
.notif-icon.general        { background: rgba(99,102,241,0.1); color: var(--primary); }

.notif-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.notif-footer {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
}

.notif-footer:hover {
    background: var(--primary-subtle);
    color: var(--primary-dark);
}

/* ============================================
   KANBAN BOARD
   ============================================ */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    min-height: 60vh;
}

@media (max-width: 991.98px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

.kanban-column {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 2px dashed var(--border-color);
    min-height: 200px;
    transition: var(--transition);
}

.kanban-column.drag-over {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.kanban-column-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kanban-column-count {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--primary-subtle);
    color: var(--primary);
}

.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    cursor: grab;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.kanban-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.kanban-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   CHARTS
   ============================================ */
.chart-container {
    position: relative;
    padding: 16px;
}

.chart-container canvas {
    max-height: 300px;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236,72,153,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.login-container {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 24px;
    position: relative;
    z-index: 2;
}

.login-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.login-card .brand-icon {
    width: 56px;
    height: 56px;
    font-size: 26px;
    margin: 0 auto 16px;
}

.login-card .brand-text {
    text-align: center;
    font-size: 1.6rem;
    display: block;
    margin-bottom: 8px;
}

.login-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 32px;
}

.login-card .form-control {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
}

.login-card .form-control::placeholder {
    color: rgba(255,255,255,0.35);
}

.login-card .form-control:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
    color: #fff;
}

.login-card .form-label {
    color: rgba(255,255,255,0.7);
}

.login-card .input-group-text {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
}

.login-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(99,102,241,0.3);
    letter-spacing: 0.3px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.45);
}

.login-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-credentials {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
}

.demo-credentials h6 {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.demo-credentials p {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

.demo-credentials code {
    color: var(--primary-light);
    background: rgba(99,102,241,0.15);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
}

/* ============================================
   ACTIVITY LIST
   ============================================ */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.filter-bar .form-control,
.filter-bar .form-select {
    max-width: 200px;
    padding: 8px 12px;
    font-size: 13px;
}

@media (max-width: 575.98px) {
    .filter-bar .form-control,
    .filter-bar .form-select {
        max-width: 100%;
    }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h5 {
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ============================================
   UTILITIES
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   REPORTS
   ============================================ */
.report-summary-card {
    text-align: center;
    padding: 30px 20px;
}

.report-summary-card .stat-icon {
    margin: 0 auto 12px;
}

.report-summary-card .stat-value {
    font-size: 2.2rem;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-header {
    text-align: center;
    padding: 40px 20px 30px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .top-navbar, .sidebar, .mobile-bottom-nav,
    .sidebar-backdrop, .btn, .filter-bar { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 0 !important; }
    .card { break-inside: avoid; }
}
