/* ══════════════════════════════════════════
   ATTENDANCE PAGE — PREMIUM CSS
   ══════════════════════════════════════════ */

/* ── Hero Header ── */
.att-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.att-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(99,102,241,.25) 0%, transparent 65%);
    pointer-events: none;
}
.att-hero-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: white;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.att-hero-sub {
    font-size: .82rem;
    color: rgba(255,255,255,.55);
    margin-top: 4px;
}

/* ── Stat Cards ── */
.att-stat {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 14px 18px;
    min-width: 120px;
    text-align: center;
    transition: transform .2s, background .2s;
}
.att-stat:hover { transform: translateY(-2px); background: rgba(255,255,255,.15); }
.att-stat-num { font-size: 1.6rem; font-weight: 800; color: white; line-height: 1; }
.att-stat-lbl { font-size: .65rem; color: rgba(255,255,255,.5); margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }

/* ── Filter Panel ── */
.att-filter-panel {
    background: white;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
}

/* ── Student Row Card ── */
.att-row {
    background: white;
    border-radius: 12px;
    border: 1.5px solid #f1f5f9;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.att-row:hover { border-color: #c7d2fe; box-shadow: 0 2px 12px rgba(99,102,241,.08); }
.att-row.status-present { border-right: 4px solid #10b981; }
.att-row.status-absent  { border-right: 4px solid #f43f5e; }
.att-row.status-late    { border-right: 4px solid #f59e0b; }
.att-row.status-excused { border-right: 4px solid #3b82f6; }

/* ── Avatar ── */
.att-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 700;
    flex-shrink: 0;
}

/* ── Status Toggle Pills ── */
.att-toggle-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.att-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 99px;
    border: 1.5px solid transparent;
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    background: #f1f5f9;
    color: #64748b;
    user-select: none;
}
.att-pill:hover { background: #e2e8f0; }
.att-pill.active-present { background: #d1fae5; color: #059669; border-color: #a7f3d0; }
.att-pill.active-absent  { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.att-pill.active-late    { background: #fef3c7; color: #d97706; border-color: #fde68a; }
.att-pill.active-excused { background: #dbeafe; color: #2563eb; border-color: #bfdbfe; }

/* ── Save Button ── */
.att-save-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 13px 32px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(16,185,129,.35);
    transition: box-shadow .2s, transform .15s;
    display: flex; align-items: center; gap: 8px;
}
.att-save-btn:hover:not(:disabled) { box-shadow: 0 10px 28px rgba(16,185,129,.45); transform: translateY(-1px); }
.att-save-btn:disabled { opacity: .6; cursor: default; }

/* ── Mark All Button ── */
.att-mark-all-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1.5px solid #c7d2fe;
    background: #eef2ff;
    color: #4f46e5;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.att-mark-all-btn:hover { background: #e0e7ff; border-color: #a5b4fc; }

/* ── Progress Ring (big gauge) ── */
.att-gauge-wrap {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.att-gauge-inner {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: white;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
}
.att-gauge-pct { font-size: .92rem; font-weight: 800; line-height: 1; }
.att-gauge-lbl { font-size: .5rem; color: #94a3b8; }

/* ── Monthly Report Table ── */
.att-report-table { border-radius: 14px; overflow: hidden; border: 1.5px solid #e2e8f0; }
.att-report-table th { background: #f8fafc; font-size: .72rem; font-weight: 700; color: #475569; padding: 10px 14px; border-bottom: 1.5px solid #e2e8f0; }
.att-report-table td { font-size: .8rem; padding: 10px 14px; border-bottom: 1px solid #f1f5f9; }
.att-report-table tr:last-child td { border-bottom: none; }
.att-report-table tr:hover td { background: #f8fafc; }

/* ── Section Selector Sidebar List ── */
.att-class-item {
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    transition: background .15s;
    border: 1.5px solid transparent;
}
.att-class-item:hover { background: #f1f5f9; }
.att-class-item.selected { background: #eef2ff; border-color: #c7d2fe; }
.att-class-item-name { font-size: .84rem; font-weight: 700; color: #0f172a; }
.att-class-item-sub { font-size: .68rem; color: #94a3b8; }

/* ── Date Navigator ── */
.att-date-nav {
    display: flex; align-items: center; gap: 8px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 10px;
}
.att-date-btn {
    width: 30px; height: 30px; border-radius: 8px;
    border: none; background: #f1f5f9; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.att-date-btn:hover { background: #e2e8f0; }
.att-date-label { font-size: .82rem; font-weight: 700; color: #0f172a; min-width: 110px; text-align: center; }

/* ── Saved Badge ── */
.att-saved-badge {
    display: inline-flex; align-items: center; gap: 3px;
    background: #d1fae5; color: #059669;
    border-radius: 99px; padding: 2px 8px;
    font-size: .62rem; font-weight: 700;
    border: 1px solid #a7f3d0;
}
.att-unsaved-badge {
    display: inline-flex; align-items: center; gap: 3px;
    background: #f1f5f9; color: #94a3b8;
    border-radius: 99px; padding: 2px 8px;
    font-size: .62rem; font-weight: 700;
    border: 1px solid #e2e8f0;
}

/* ── Empty State ── */
.att-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; padding: 64px 24px; text-align: center;
}
.att-empty-icon { font-size: 3.5rem; opacity: .25; }
.att-empty-title { font-size: 1rem; font-weight: 700; color: #475569; }
.att-empty-sub { font-size: .8rem; color: #94a3b8; max-width: 280px; line-height: 1.6; }

/* ── Animations ── */
@keyframes att-fade-in {
    from { opacity:0; transform: translateY(8px); }
    to   { opacity:1; transform: translateY(0); }
}
.att-row { animation: att-fade-in .2s ease both; }
.att-row:nth-child(1)  { animation-delay: .02s; }
.att-row:nth-child(2)  { animation-delay: .04s; }
.att-row:nth-child(3)  { animation-delay: .06s; }
.att-row:nth-child(4)  { animation-delay: .08s; }
.att-row:nth-child(5)  { animation-delay: .10s; }
.att-row:nth-child(6)  { animation-delay: .12s; }
.att-row:nth-child(n+7){ animation-delay: .14s; }

/* ── Late Minutes Input ── */
.att-late-input { width: 80px !important; }

/* ── Notes Input ── */
.att-notes-input { min-width: 130px; font-size: .78rem !important; }
