/* ============================================================
   FOXTROT — Design System
   Colors:
     --neon:    #C8F904  (neon yellow-green — highlights, CTAs, glow)
     --violet:  #6967FB  (electric violet — primary accent, interactive)
     --bg:      #0E1A1F  (near-black teal — base background)
     --white:   #FFFFFF  (pure white — text, contrast)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
    --neon:        #C8F904;
    --neon-dim:    rgba(200, 249, 4, 0.15);
    --neon-glow:   rgba(200, 249, 4, 0.4);
    --violet:      #6967FB;
    --violet-dim:  rgba(105, 103, 251, 0.15);
    --violet-glow: rgba(105, 103, 251, 0.5);
    --bg:          #0E1A1F;
    --bg-1:        #111F25;
    --bg-2:        #162630;
    --bg-3:        #1C2F38;
    --white:       #FFFFFF;
    --white-60:    rgba(255, 255, 255, 0.6);
    --white-30:    rgba(255, 255, 255, 0.3);
    --white-10:    rgba(255, 255, 255, 0.08);
    --white-5:     rgba(255, 255, 255, 0.04);
    --danger:      #FF4567;
    --danger-dim:  rgba(255, 69, 103, 0.15);
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   18px;
    --radius-xl:   24px;
}

/* ============================================================ RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ============================================================ BASE */
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient background blobs */
body::before {
    content: '';
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(105, 103, 251, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 249, 4, 0.05) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================ LAYOUT */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 1;
}

/* ============================================================ NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(14, 26, 31, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(105, 103, 251, 0.2);
    box-shadow: 0 1px 40px rgba(0, 0, 0, 0.4);
}

.nav-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-left img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-left h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.nav-right .btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.user-info {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon);
    background: var(--neon-dim);
    border: 1px solid rgba(200, 249, 4, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.55rem 1rem;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ============================================================ BUTTONS */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    white-space: nowrap;
}

/* Ripple on click */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: inherit;
}
.btn:hover::after { opacity: 1; }

/* Primary — neon yellow-green */
.btn-primary {
    background: var(--neon);
    color: var(--bg);
    box-shadow: 0 0 20px rgba(200, 249, 4, 0.35), 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid rgba(200, 249, 4, 0.6);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(200, 249, 4, 0.55), 0 4px 16px rgba(0,0,0,0.3);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary — glass with violet tint */
.btn-secondary {
    background: var(--white-5);
    color: var(--white-60);
    border: 1px solid var(--white-10);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: var(--violet-dim);
    color: var(--white);
    border-color: rgba(105, 103, 251, 0.4);
    box-shadow: 0 0 18px var(--violet-glow);
    transform: translateY(-1px);
}

/* Danger */
.btn-danger {
    background: var(--danger-dim);
    color: var(--danger);
    border: 1px solid rgba(255, 69, 103, 0.3);
}
.btn-danger:hover {
    background: rgba(255, 69, 103, 0.25);
    box-shadow: 0 0 18px rgba(255, 69, 103, 0.4);
    transform: translateY(-1px);
}

.btn-small {
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
}

/* ============================================================ GLASS PANELS */
.glass {
    background: rgba(22, 38, 48, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ============================================================ ALERTS */
.alert {
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(200, 249, 4, 0.08);
    border-color: var(--neon);
    color: var(--neon);
}
.alert-error {
    background: rgba(255, 69, 103, 0.08);
    border-color: var(--danger);
    color: var(--danger);
}
.alert-info {
    background: var(--violet-dim);
    border-color: var(--violet);
    color: #a8a7ff;
}

/* ============================================================ FORMS */
.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--white-60);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--white-30);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--violet);
    background: rgba(105, 103, 251, 0.07);
    box-shadow: 0 0 0 3px rgba(105, 103, 251, 0.15), 0 0 18px rgba(105, 103, 251, 0.15);
}

.form-group input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 85px;
}

.form-group small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.76rem;
    color: var(--white-30);
}

/* ============================================================ LOGIN PAGE */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Extra violet orb for login */
.login-container::before {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(105, 103, 251, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: rgba(17, 31, 37, 0.7);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(105, 103, 251, 0.25);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03),
        0 24px 64px rgba(0,0,0,0.6),
        0 0 80px rgba(105, 103, 251, 0.1);
    position: relative;
}

/* Neon top accent line */
.login-box::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--violet), var(--neon), var(--violet), transparent);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo img,
.login-logo {
    height: 72px;
    width: auto;
    margin-bottom: 1.25rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(200, 249, 4, 0.5));
}

.logo h1 {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    margin-top: 0;
    line-height: 1.1;
}

.logo p {
    font-size: 0.8rem;
    color: var(--white-60);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.35rem;
}

.login-box .btn-primary {
    width: 100%;
    padding: 0.9rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.info-box {
    margin-top: 1.75rem;
    padding: 1.1rem;
    background: var(--white-5);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--white-60);
    text-align: center;
}

.info-box p { margin: 0.2rem 0; }
.info-box strong { color: var(--neon); }

/* ============================================================ DASHBOARD HEADER */
.dashboard-header {
    background: rgba(17, 31, 37, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(105, 103, 251, 0.2);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.03);
}

/* Accent stripe on left */
.dashboard-header::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--neon), var(--violet));
}

.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
    padding-left: 1.25rem;
}

.dashboard-header p {
    font-size: 0.88rem;
    color: var(--white-60);
    margin-top: 0.3rem;
    padding-left: 1.25rem;
}

/* Progress in header */
.progress-summary { padding-left: 1.25rem; margin-top: 1.25rem; }

.progress-bar {
    height: 6px;
    background: var(--white-10);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--neon));
    border-radius: 99px;
    box-shadow: 0 0 12px rgba(200, 249, 4, 0.5);
    transition: width 0.6s cubic-bezier(.4,0,.2,1);
}

.progress-summary p {
    font-size: 0.82rem;
    color: var(--white-60);
}

/* ============================================================ WEEK BOXES (Member View) */
.week-box {
    background: rgba(17, 31, 37, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(105, 103, 251, 0.22);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.02);
    transition: box-shadow 0.3s;
}

.week-box:hover {
    box-shadow: 0 8px 50px rgba(0,0,0,0.3), 0 0 30px rgba(105,103,251,0.1);
}

.week-box.archive-week {
    border-color: var(--white-10);
    opacity: 0.55;
}

.week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.75rem;
    background: rgba(105, 103, 251, 0.1);
    border-bottom: 1px solid rgba(105, 103, 251, 0.15);
}

.archive-week .week-header {
    background: var(--white-5);
    border-color: var(--white-10);
}

.week-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.week-progress-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.week-progress-mini span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--neon);
    letter-spacing: 0.02em;
}

.progress-bar-mini {
    width: 100px;
    height: 4px;
    background: var(--white-10);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--neon));
    border-radius: 99px;
    box-shadow: 0 0 8px rgba(200, 249, 4, 0.5);
    transition: width 0.6s ease;
}

.week-box .tasks-container {
    padding: 1.25rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ============================================================ TASK CARDS */
.task-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.22s ease;
}

.task-card.completed {
    background: rgba(200, 249, 4, 0.03);
    border-color: rgba(200, 249, 4, 0.15);
}

.task-card.archived {
    opacity: 0.45;
    pointer-events: none;
}

.task-checkbox {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border: 2px solid var(--white-10);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
}

.task-checkbox:hover {
    background: var(--violet-dim);
    border-color: rgba(105, 103, 251, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(105, 103, 251, 0.2);
}

.task-card.completed .task-checkbox {
    background: rgba(200, 249, 4, 0.1);
    border-color: rgba(200, 249, 4, 0.3);
}

.task-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--neon);
    flex-shrink: 0;
}

.task-content { flex: 1; }

.task-content label { cursor: pointer; display: block; }

.task-content h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
}

.task-card.completed .task-content h3 {
    text-decoration: line-through;
    color: var(--white-30);
}

.task-description {
    font-size: 0.8rem;
    color: var(--white-60);
    margin-top: 0.3rem;
    line-height: 1.5;
}

.week-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--violet);
    background: var(--violet-dim);
    border: 1px solid rgba(105,103,251,0.25);
    border-radius: 6px;
    padding: 0.3rem 0.65rem;
}

/* ============================================================ ARCHIVE SECTION */
.archive-section { margin-top: 3rem; }

.archive-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white-30);
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.archive-title::before, .archive-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--white-10);
}

.archive-divider {
    margin: 3rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.archive-divider h2 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white-30);
    white-space: nowrap;
}
.archive-divider::before, .archive-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--white-10);
}

/* ============================================================ ADMIN / PANEL SECTIONS */
.admin-grid {
    display: grid;
    gap: 1.75rem;
}

.admin-section {
    background: rgba(17, 31, 37, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.02);
}

.admin-section.full-width { grid-column: 1 / -1; }

.admin-section h2 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white-60);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--white-10);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-section h2::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--neon);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-glow);
    flex-shrink: 0;
}

/* ============================================================ WEEK MATRIX BOXES */
.week-matrix-box {
    background: rgba(17, 31, 37, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(105, 103, 251, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.week-matrix-box.archive-matrix-box {
    border-color: var(--white-10);
    opacity: 0.55;
}

.week-matrix-box h2 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.week-matrix-box h2::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--neon);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-glow);
    flex-shrink: 0;
}

.archive-matrix-box h2 { color: var(--white-60); }
.archive-matrix-box h2::before {
    background: var(--white-30);
    box-shadow: none;
}

/* ============================================================ MATRIX TABLE */
.matrix-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--white-10);
}

.progress-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 500px;
}

.progress-matrix thead {
    background: rgba(105, 103, 251, 0.12);
    position: sticky;
    top: 0;
    z-index: 10;
}

.progress-matrix th {
    padding: 0.85rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--white-60);
    border: 1px solid var(--white-10);
}

.progress-matrix .task-column {
    text-align: left;
    min-width: 220px;
    max-width: 320px;
}

.progress-matrix .member-column { min-width: 110px; }

.progress-matrix tbody tr {
    transition: background 0.18s;
}

.progress-matrix tbody tr:hover {
    background: rgba(105, 103, 251, 0.07);
}

.progress-matrix tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

.progress-matrix td {
    padding: 0.85rem 1rem;
    border: 1px solid var(--white-10);
    text-align: center;
    color: var(--white-60);
}

.task-cell {
    text-align: left !important;
    color: var(--white) !important;
}

.task-desc {
    font-size: 0.76rem;
    color: var(--white-30);
    display: block;
    margin-top: 0.25rem;
    font-style: italic;
}

.checkbox-cell {
    vertical-align: middle;
}

.checkmark {
    font-size: 1.6rem;
    color: var(--neon);
    line-height: 1;
    text-shadow: 0 0 12px var(--neon-glow);
    font-weight: bold;
}

.checkmark.archived {
    color: rgba(200, 249, 4, 0.3);
    text-shadow: none;
}

.empty-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--white-30);
    border-radius: 3px;
    display: inline-block;
    transition: all 0.2s ease;
}

.summary-row {
    background: rgba(200, 249, 4, 0.06) !important;
    border-top: 1px solid rgba(200, 249, 4, 0.2) !important;
}

.summary-row td {
    padding: 0.85rem 1rem !important;
}

.progress-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon);
    text-shadow: 0 0 8px var(--neon-glow);
}

.progress-percent {
    font-size: 0.72rem;
    color: var(--white-30);
}

.you-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(200, 249, 4, 0.15);
    color: var(--neon);
    border: 1px solid rgba(200, 249, 4, 0.3);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    margin-left: 0.35rem;
}

.week-badge-small {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--violet-dim);
    color: #a8a7ff;
    border: 1px solid rgba(105,103,251,0.25);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    margin-left: 0.35rem;
}

.archive-matrix thead {
    background: var(--white-5);
}

.archive-matrix thead th {
    color: var(--white-30);
}

/* ============================================================ TASK FORM (admin) */
.task-form {
    background: var(--white-5);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.task-form h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white-60);
    margin-bottom: 1.25rem;
}

/* ============================================================ TASK LIST (admin) */
.current-tasks { margin-top: 1rem; }

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.tasks-header h3 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white-60);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.task-item {
    background: var(--white-5);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.task-item:hover {
    background: var(--violet-dim);
    border-color: rgba(105,103,251,0.3);
    transform: translateX(3px);
}

.task-info { flex: 1; }

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

.task-info p {
    font-size: 0.78rem;
    color: var(--white-60);
}

/* ============================================================ STAT CARDS */
.team-stats { margin-top: 2rem; }

.stat-card {
    background: var(--white-5);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.25s;
}

.stat-card:hover {
    background: var(--violet-dim);
    border-color: rgba(105,103,251,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(105,103,251,0.15);
}

/* ============================================================ PROGRESS LIST (admin) */
.progress-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-item {
    padding: 1.25rem;
    background: var(--white-5);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.progress-item:hover {
    background: var(--violet-dim);
    border-color: rgba(105,103,251,0.25);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-header h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
}

.progress-percentage {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon);
    text-shadow: 0 0 8px var(--neon-glow);
}

.progress-text {
    font-size: 0.78rem;
    color: var(--white-30);
    margin-top: 0.4rem;
}

/* ============================================================ EMPTY STATE */
.empty-state {
    border: 1px dashed var(--white-10);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--white-30);
}

.empty-state p {
    font-size: 0.88rem;
    margin: 0.3rem 0;
}

/* ============================================================ INFO BOX */
.info-box {
    background: var(--white-5);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    font-size: 0.82rem;
    color: var(--white-30);
    text-align: center;
    margin-top: 1.5rem;
}

.info-box p { margin: 0.2rem 0; }
.info-box strong { color: var(--neon); }

/* ============================================================ SECTION TITLES */
.section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white-60);
    margin-bottom: 1.25rem;
}

/* ============================================================ MATRIX SECTION (team view) */
.matrix-section {
    background: rgba(17, 31, 37, 0.55);
    backdrop-filter: blur(20px);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.75rem;
}

/* ============================================================ SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--white-10);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(105,103,251,0.5); }

/* ============================================================ EDIT BUTTON */
.btn-edit {
    background: var(--violet-dim);
    color: #a8a7ff;
    border: 1px solid rgba(105, 103, 251, 0.35);
}
.btn-edit:hover {
    background: rgba(105, 103, 251, 0.25);
    border-color: rgba(105, 103, 251, 0.6);
    box-shadow: 0 0 16px var(--violet-glow);
    transform: translateY(-1px);
}

/* ============================================================ ITEM ACTIONS */
.item-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

/* ============================================================ MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 13, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: rgba(17, 31, 37, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(105, 103, 251, 0.35);
    border-radius: var(--radius-xl);
    padding: 2rem;
    width: 100%;
    max-width: 460px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03),
        0 24px 64px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(105, 103, 251, 0.15);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

/* Violet top accent on modal */
.modal-box::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--violet), var(--neon), var(--violet), transparent);
    border-radius: 0 0 4px 4px;
}

.modal-box {
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.modal-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.modal-close {
    background: var(--white-5);
    border: 1px solid var(--white-10);
    color: var(--white-60);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.modal-close:hover {
    background: var(--danger-dim);
    border-color: rgba(255,69,103,0.3);
    color: var(--danger);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    min-width: 110px;
}

/* ============================================================ LOGIN LOGO SIZE FIX */
.login-logo,
.logo img {
    height: 88px !important;
    margin-bottom: 0.75rem !important;
}

.logo h1 {
    margin-top: 0 !important;
}

.logo {
    margin-bottom: 2rem !important;
}

/* ============================================================ SELECTION */
::selection {
    background: rgba(105, 103, 251, 0.35);
    color: var(--white);
}

/* ============================================================ RESPONSIVE */
@media (max-width: 768px) {
    .container { padding: 1.5rem 1rem; }

    .nav-content {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-right {
        width: 100%;
        gap: 0.4rem;
    }

    .nav-right .btn { padding: 0.45rem 0.85rem; font-size: 0.75rem; }

    .login-box { padding: 2rem 1.5rem; }
    .dashboard-header { padding: 1.5rem; }
    .dashboard-header h1 { font-size: 1.4rem; }
    .week-header { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .task-card { flex-direction: column; }
    .task-item { flex-direction: column; align-items: flex-start; }
}
