/* Dashboard Page Styles - CallYourKid */

/* CSS Variables - Dark/Silver Design System */
:root {
    /* Dark palette */
    --bg-base:      #0e1018;
    --bg-sidebar:   #090b10;
    --bg-card:      #181b24;
    --bg-elevated:  #1f2230;
    --bg-input:     #1a1d28;

    /* Borders */
    --border:       #252836;
    --border-light: #2e3245;

    /* Text */
    --text-primary:   #eceef5;
    --text-secondary: #8892a4;
    --text-muted:     #525870;

    /* Silver accents */
    --silver:       #94a3b8;
    --silver-light: #cbd5e1;

    /* Brand accents */
    --orange:     #c9a84c;
    --orange-dim: rgba(201,168,76,0.12);
    --blue:       #4f8ef7;
    --blue-dim:   rgba(79,142,247,0.12);
    --teal:       #2dd4bf;

    /* Legacy names kept for compatibility */
    --navy:    #090b10;
    --sky:     #1f2a3a;
    --yellow:  #fbbf24;
    --warm:    #1a1d28;
    --gray-50: #0e1018;
    --gray-100:#252836;
    --gray-200:#2e3245;
    --gray-300:#3a3f57;
    --gray-400:#525870;
    --gray-500:#6b7280;
    --gray-600:#8892a4;
    --gray-700:#a0aec0;
    --gray-800:#eceef5;

    --border-radius: 12px;
    --border-radius-pill: 50px;
    --container-max-width: 1140px;

    /* Kid colour palette */
    --kid-coral:  #ff6b6b;
    --kid-teal:   #4ecdc4;
    --kid-purple: #a78bfa;
    --kid-gold:   #fbbf24;
    --kid-mint:   #34d399;
    --kid-pink:   #f472b6;
    --kid-sky:    #38bdf8;
    --kid-lime:   #a3e635;
}

/* ── Base ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-base);
    color: var(--text-primary);
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-base);
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
    width: 240px;
    background: var(--bg-sidebar);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    border-right: 1px solid var(--border);
}

.sidebar-header {
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header .logo {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    color: var(--silver-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-header .logo span {
    color: var(--orange);
    font-weight: 900;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
    /* Override global nav rule in style.css */
    position: relative;
    top: auto;
    height: auto;
    background: var(--bg-sidebar);
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: block;
    align-items: unset;
    z-index: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.18s ease;
    position: relative;
    border-radius: 0;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.nav-item.active {
    color: var(--text-primary);
    background: var(--orange-dim);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--orange);
    border-radius: 0 3px 3px 0;
}

.nav-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.18s ease;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    opacity: 1;
}

.nav-text { font-size: 14px; }

.user-profile {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-sidebar);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
}

.user-info { flex: 1; }

.user-role-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
}

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 32px;
    max-width: calc(100vw - 240px);
}

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    position: sticky;
    top: 0;
    background: var(--bg-base);
    padding: 16px 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.topbar-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Nunito', sans-serif;
    letter-spacing: -0.5px;
}

.date-display {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.2px;
}

/* Nav section label */
.nav-section-label {
    padding: 16px 20px 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    opacity: 0.6;
}

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

/* ── Notification Bell ────────────────────────────────────── */
.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-bell:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
}

.notification-bell.pulse { animation: pulse 2s infinite; }

.bell-icon {
    color: var(--text-secondary);
    display: block;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--orange);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 11px;
}

/* ── User Dropdown ────────────────────────────────────────── */
.user-dropdown { position: relative; }

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.user-dropdown-toggle:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
}

.user-avatar-small {
    width: 30px;
    height: 30px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: white;
}

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

.header-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.user-dropdown-toggle:hover .dropdown-arrow { transform: translateY(1px); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
}

.dropdown-item:first-child { border-radius: 12px 12px 0 0; }
.dropdown-item:last-child  { border-radius: 0 0 12px 12px; }

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.dropdown-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
    background: var(--orange);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: var(--border-radius-pill);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}

.btn-primary.small { padding: 7px 16px; font-size: 12px; }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    padding: 10px 22px;
    border-radius: var(--border-radius-pill);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-ghost:hover {
    border-color: var(--silver);
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.btn-ghost.small {
    padding: 7px 14px;
    font-size: 12px;
}

.btn-ghost.small.danger {
    color: #f87171;
    border-color: rgba(248,113,113,0.4);
}

.btn-ghost.small.danger:hover {
    background: rgba(248,113,113,0.12);
    border-color: #f87171;
    color: #fca5a5;
}

.btn-nav {
    background: var(--blue);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: var(--border-radius-pill);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-nav:hover {
    background: #3b82f6;
    transform: translateY(-1px);
}

/* ── Stats Grid ───────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--border-light);
    padding: 22px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 60%);
    pointer-events: none;
}

.stat-card:hover {
    border-color: var(--border-light);
    border-top-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--silver);
}

.stat-icon svg { display: block; }

.stat-icon.live    { background: rgba(239,68,68,0.12);  border-color: rgba(239,68,68,0.2); color: #f87171; }
.stat-icon.pending { background: var(--orange-dim);     border-color: rgba(201,168,76,0.2); color: var(--orange); }
.stat-icon.rating  { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.2); color: #fbbf24; }

.stat-content { flex: 1; }

.stat-number {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

/* ── Content Grid ─────────────────────────────────────────── */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ── Panels ───────────────────────────────────────────────── */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Nunito', sans-serif;
}

.live-indicator {
    color: #f87171;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 13px;
}

.schedule-count,
.reports-count,
.chart-subtitle,
.sessions-count,
.requests-count,
.notifications-count,
.actions-count,
.cases-count {
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 13px;
}

/* ── Role Containers ──────────────────────────────────────── */
.role-dashboard { display: none; }

/* ── Parent Dashboard ─────────────────────────────────────── */
.upcoming-sessions { grid-column: 1 / -1; }

.sessions-list {
    max-height: 500px;
    overflow-y: auto;
}


.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.session-family {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.session-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 12px;
}

.session-status.scheduled  { background: rgba(52,211,153,0.15); color: #34d399; }
.session-status.live       { background: rgba(239,68,68,0.15);  color: #f87171; animation: pulse 2s infinite; }
.session-status.completed  { background: var(--bg-elevated);    color: var(--text-muted); }
.session-status.cancelled  { background: rgba(239,68,68,0.12);  color: #f87171; }
.session-status.no_show    { background: var(--orange-dim);      color: var(--orange); }

.session-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.session-datetime { flex: 1; }

.session-date {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.session-time {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Nunito', sans-serif;
}

.session-duration {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 7px 12px;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

.session-countdown {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.2);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.countdown-label {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    margin-bottom: 4px;
}

.countdown-timer {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: #fbbf24;
    font-size: 18px;
}

.session-actions { display: flex; gap: 8px; }

/* ── Parent Session Cards (with PIN) ─────────────────────── */
.session-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.session-card:last-child { margin-bottom: 0; }

.session-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.session-card.session-live {
    border-color: rgba(239,68,68,0.4);
    box-shadow: 0 0 0 1px rgba(239,68,68,0.15);
}

.session-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.session-child-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.live-badge {
    background: rgba(239,68,68,0.15);
    color: #f87171;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(239,68,68,0.25);
    animation: pulse 2s infinite;
}

.session-datetime {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'Nunito', sans-serif;
    margin-bottom: 16px;
}

.session-pin-block {
    background: rgba(201,168,76,0.06);
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: 10px;
    padding: 14px 16px;
}

.session-pin-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange);
    opacity: 0.8;
    margin-bottom: 4px;
}

.session-pin-number {
    font-family: 'Nunito', monospace;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 6px;
    color: var(--orange);
    margin-bottom: 8px;
    line-height: 1;
}

.session-pin-instructions {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Nunito', sans-serif;
    line-height: 1.5;
}

.session-pin-instructions strong {
    color: var(--silver-light);
}

/* ── Children Grid ────────────────────────────────────────── */
.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 24px;
}

.child-card {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Kid color accent bar on left edge */
.child-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--kid-coral);
    border-radius: 0;
}

.child-card.color-teal::before   { background: var(--kid-teal); }
.child-card.color-purple::before { background: var(--kid-purple); }
.child-card.color-gold::before   { background: var(--kid-gold); }
.child-card.color-mint::before   { background: var(--kid-mint); }
.child-card.color-pink::before   { background: var(--kid-pink); }
.child-card.color-sky::before    { background: var(--kid-sky); }
.child-card.color-lime::before   { background: var(--kid-lime); }

.child-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.child-header { margin-bottom: 16px; }

.child-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 4px;
}

.child-age {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'Nunito', sans-serif;
}

.child-restrictions {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-bottom: 16px;
}

.restriction-title {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.restriction-list { display: flex; flex-wrap: wrap; gap: 6px; }

.restriction-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.child-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.child-actions .btn-ghost.small,
.child-actions .btn-primary.small { flex: 1; }

/* ── Call Requests ────────────────────────────────────────── */
.call-requests { grid-column: 1 / -1; }

.request-actions {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.requests-list {
    max-height: 400px;
    overflow-y: auto;
}

.request-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin: 16px 24px;
    transition: all 0.2s ease;
}

.request-item:hover {
    border-color: var(--border-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.request-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.request-child strong {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.request-case {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
}

.request-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.request-status.pending   { background: rgba(37,99,235,0.12);  color: #2563eb; }
.request-status.booked    { background: rgba(37,99,235,0.12);  color: #2563eb; }
.request-status.confirmed { background: rgba(45,212,191,0.15); color: var(--teal); }
.request-status.objected  { background: rgba(201,168,76,0.15); color: #c9a84c; }
.request-status.scheduled { background: rgba(45,212,191,0.15); color: var(--teal); }
.request-status.missed    { background: rgba(239,68,68,0.12);  color: #dc2626; }

.request-details { display: flex; flex-direction: column; gap: 8px; }

.request-datetime {
    display: flex;
    gap: 12px;
    align-items: center;
}

.request-date, .request-time {
    font-family: 'Nunito', sans-serif;
    color: var(--text-secondary);
    font-size: 14px;
}

.request-note {
    background: var(--bg-card);
    border-left: 3px solid var(--orange);
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    font-family: 'Nunito', sans-serif;
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
}

/* ── History List ─────────────────────────────────────────── */
.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.history-info { flex: 1; }

.history-family {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.history-time {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
}

.history-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 12px;
}

.history-status.completed { background: rgba(52,211,153,0.15); color: #34d399; }
.history-status.scheduled { background: rgba(52,211,153,0.15); color: #34d399; }
.history-status.cancelled { background: rgba(239,68,68,0.12);  color: #f87171; }
.history-status.no_show   { background: var(--orange-dim);      color: var(--orange); }

/* ── Notifications ────────────────────────────────────────── */
.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

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

.notification-icon {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-item.reminder .notification-icon      { background: rgba(251,191,36,0.15); color: #fbbf24; }
.notification-item.availability .notification-icon  { background: var(--blue-dim);        color: var(--blue); }
.notification-item.report .notification-icon        { background: rgba(52,211,153,0.15);  color: #34d399; }

.notification-content { flex: 1; }

.notification-message {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
}

/* ── Supervisor: Live Calls ───────────────────────────────── */
.live-calls { grid-column: 1 / -1; }

.call-item {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.call-info { flex: 1; }

.call-family {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.call-timer {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 13px;
}

.call-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
}

.sound-bar {
    width: 3px;
    background: var(--teal);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.sound-bar:nth-child(1) { animation-delay: 0s;   height: 20%; }
.sound-bar:nth-child(2) { animation-delay: 0.1s; height: 40%; }
.sound-bar:nth-child(3) { animation-delay: 0.2s; height: 60%; }
.sound-bar:nth-child(4) { animation-delay: 0.3s; height: 80%; }
.sound-bar:nth-child(5) { animation-delay: 0.4s; height: 40%; }

.call-actions { display: flex; gap: 8px; }

/* ── Schedule ─────────────────────────────────────────────── */
.schedule-list {
    max-height: 400px;
    overflow-y: auto;
}

.schedule-item {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.schedule-time {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
    min-width: 80px;
}

.schedule-family {
    flex: 1;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-badge {
    padding: 4px 10px;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 12px;
}

.schedule-badge.complete  { background: rgba(52,211,153,0.15); color: #34d399; }
.schedule-badge.live      { background: rgba(239,68,68,0.15);  color: #f87171; }
.schedule-badge.soon      { background: var(--orange-dim);      color: var(--orange); }
.schedule-badge.pending   { background: var(--bg-elevated);     color: var(--text-muted); border: 1px solid var(--border); }
.schedule-badge.cancelled { background: rgba(239,68,68,0.12);  color: #f87171; }
.schedule-badge.no_show   { background: var(--orange-dim);      color: var(--orange); }

/* ── My Cases ─────────────────────────────────────────────── */
.my-cases { grid-column: 1 / -1; }

.cases-list {
    max-height: 300px;
    overflow-y: auto;
}

.case-item {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.case-info { flex: 1; }

.case-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.case-type {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'Nunito', sans-serif;
    margin-bottom: 2px;
}

.case-children {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
}

/* ── Availability Manager ─────────────────────────────────── */
.availability-manager { grid-column: 1 / -1; }

.availability-grid {
    padding: 24px;
    overflow-x: auto;
}

.availability-header {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.time-slot-header,
.day-header {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.availability-row {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.time-slot-label {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.availability-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.availability-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.availability-toggle label {
    width: 38px;
    height: 22px;
    background: var(--border-light);
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.availability-toggle label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
}

.availability-toggle input[type="checkbox"]:checked + label {
    background: var(--blue);
}

.availability-toggle input[type="checkbox"]:checked + label::after {
    transform: translateX(16px);
    background: white;
}

/* ── Reports ──────────────────────────────────────────────── */
.reports-list {
    max-height: 300px;
    overflow-y: auto;
}

.report-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.report-item.overdue { background: rgba(239,68,68,0.05); }

.report-info { flex: 1; }

.report-family {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.report-item.overdue .report-family { color: #f87171; }

.report-child {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 4px;
}

.report-time {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.report-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-submitted-badge {
    background: rgba(52,211,153,0.15);
    color: #34d399;
    border: 1px solid rgba(52,211,153,0.25);
    padding: 4px 10px;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

/* ── Weekly Chart ─────────────────────────────────────────── */
.chart-container { padding: 24px; }

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 16px;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.bar {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    transition: all 0.2s ease;
}

.bar:hover { background: var(--blue-dim); border-color: var(--blue); }
.bar.current { background: var(--orange-dim); border-color: var(--orange); }

.bar-value {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-secondary);
}

.bar-label {
    margin-top: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Professional: Cases Overview ────────────────────────── */
.cases-overview { grid-column: 1 / -1; }

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 24px;
}

.case-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.case-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.case-card.inactive { opacity: 0.6; }

.case-card .case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.case-card .case-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
}

.case-card .case-status {
    padding: 4px 10px;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 11px;
}

.case-card .case-status.active    { background: rgba(52,211,153,0.15); color: #34d399; }
.case-card .case-status.inactive  { background: var(--bg-card);         color: var(--text-muted); border: 1px solid var(--border); }
.case-card .case-status.pending   { background: var(--orange-dim);      color: var(--orange); }
.case-card .case-status.suspended { background: rgba(239,68,68,0.15);  color: #f87171; }
.case-card .case-status.closed    { background: var(--bg-card);         color: var(--text-muted); border: 1px solid var(--border); }

.case-details { margin-bottom: 16px; }

.case-updated {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
}

.case-actions { display: flex; gap: 8px; }

/* ── Upcoming All Sessions ────────────────────────────────── */
.upcoming-all-sessions { grid-column: 1 / -1; }

.session-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.session-info { flex: 1; }

.session-case {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.session-item .session-status { padding: 4px 10px; border-radius: 10px; font-size: 12px; }
.session-item .session-status.scheduled { background: rgba(52,211,153,0.15); color: #34d399; }

/* ── Pending Actions ──────────────────────────────────────── */
.pending-actions { grid-column: 1 / -1; }

.actions-list {
    max-height: 400px;
    overflow-y: auto;
}

.action-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.action-item.high   { background: rgba(239,68,68,0.05); }
.action-item.medium { background: rgba(201,168,76,0.05); }
.action-item.low    { background: rgba(52,211,153,0.04); }

.action-info { flex: 1; }

.action-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.action-case {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'Nunito', sans-serif;
    margin-bottom: 2px;
}

.action-time {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
}

/* ── Quick Links ──────────────────────────────────────────── */
.quick-links { grid-column: 1 / -1; }

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    padding: 24px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.quick-link-card:hover {
    border-color: var(--orange);
    background: var(--orange-dim);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.quick-link-icon {
    font-size: 22px;
}

.quick-link-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
}

/* ── Code Display ─────────────────────────────────────────── */
.case-code-display {
    text-align: center;
    padding: 20px;
}

.code-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 13px;
}

.code-value {
    background: var(--bg-elevated);
    border: 1px solid var(--blue);
    border-radius: 10px;
    padding: 18px;
    font-size: 22px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-value:hover {
    background: var(--blue-dim);
    box-shadow: 0 0 0 1px var(--blue);
}

.code-instructions {
    font-family: 'Nunito', sans-serif;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 13px;
}

/* ── Modals ───────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

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

.modal-header h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 7px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.form-group select option { background: var(--bg-elevated); }

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

.char-count {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    text-align: right;
    margin-top: 4px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-section { margin-bottom: 24px; }

.form-section h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 0 14px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.form-error {
    margin-top: 16px;
    padding: 12px;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 8px;
    color: #f87171;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

/* ── Add Child Inline Form ────────────────────────────────── */
.add-child-form {
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.form-content {
    padding: 24px;
    position: relative;
}

.form-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.form-close:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.form-content h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    font-size: 18px;
}

.add-child-form .form-group { margin-bottom: 0; }

.add-child-form .form-group label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 13px;
}

.add-child-form .form-group input,
.add-child-form .form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.add-child-form .form-group input:focus,
.add-child-form .form-group select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.add-child-form .form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.age-display {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
}

/* ── Edit Forms ───────────────────────────────────────────── */
.edit-form {
    padding: 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.edit-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.edit-form .form-group { margin-bottom: 0; }

.edit-form .form-group label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 13px;
}

.edit-form .form-group input,
.edit-form .form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.edit-form .form-group input:focus,
.edit-form .form-group select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.edit-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ── Profile / Child Header ───────────────────────────────── */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.child-header-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.child-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.child-info h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    font-size: 32px;
}

.child-age-badge {
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.25);
    padding: 7px 16px;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
}

.child-case-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 15px;
}

/* ── Restriction Banner ───────────────────────────────────── */
.restriction-banner {
    background: linear-gradient(90deg, rgba(201,168,76,0.15), rgba(201,168,76,0.25));
    border: 1px solid rgba(245,158,11,0.3);
    color: var(--text-primary);
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 32px;
}

.restriction-banner.warning {
    background: linear-gradient(90deg, rgba(201,168,76,0.15), rgba(201,168,76,0.25));
    border-color: rgba(245,158,11,0.3);
}

.restriction-banner.danger {
    background: linear-gradient(90deg, rgba(239,68,68,0.2), rgba(220,38,38,0.2));
    border-color: rgba(239,68,68,0.3);
}

.restriction-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.restriction-banner .banner-icon { font-size: 20px; }

.restriction-banner .banner-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    flex: 1;
}

/* ── Info Cards ───────────────────────────────────────────── */
.info-card,
.restrictions-card,
.session-history-card {
    margin-bottom: 24px;
}

.info-content,
.restrictions-content { padding: 24px; }

.info-row,
.restriction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child,
.restriction-row:last-child { border-bottom: none; }

.info-label,
.restriction-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.info-value,
.restriction-value {
    font-family: 'Nunito', sans-serif;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

/* ── Session History (child profile) ─────────────────────── */
.session-history-card .history-list { max-height: 400px; overflow-y: auto; }
.session-history-card .history-item { padding: 16px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.session-history-card .history-item:last-child { border-bottom: none; }
.session-history-card .history-info { flex: 1; }
.session-history-card .history-family { font-family: 'Nunito', sans-serif; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.session-history-card .history-time { font-size: 13px; color: var(--text-muted); font-family: 'Nunito', sans-serif; }
.session-history-card .history-status { padding: 4px 10px; border-radius: 10px; font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 12px; }

/* ── Profile Completion / Payment Banners ────────────────── */
.profile-completion-banner {
    background: linear-gradient(90deg, rgba(245,158,11,0.9), rgba(239,68,68,0.9));
    color: white;
    padding: 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.payment-banner {
    background: linear-gradient(90deg, rgba(22,163,74,0.9), rgba(34,197,94,0.9));
    color: white;
    padding: 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2001;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-icon { font-size: 18px; }

.banner-text {
    flex: 1;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.banner-action {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.banner-action:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-1px);
}

.banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.banner-close:hover { opacity: 1; background: rgba(255,255,255,0.2); }

/* ── Empty States ─────────────────────────────────────────── */
.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
}

.empty-icon {
    font-size: 44px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-muted);
}

/* ── Loading Overlay ──────────────────────────────────────── */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(14,16,24,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--orange);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 16px;
}

.loading-overlay p {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
}

/* ── View All Links ───────────────────────────────────────── */
.view-all-link {
    color: var(--blue);
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s ease;
}

.view-all-link:hover { color: var(--silver-light); }

/* ── Pulse / misc helpers ─────────────────────────────────── */
.pulse { animation: pulse 2s infinite; }

/* ══════════════════════════════════════════════════════════
   TRANSCRIPTS PANEL  (supervisor-only)
   ══════════════════════════════════════════════════════════ */

.transcripts-panel { grid-column: 1 / -1; }

.transcript-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(79,142,247,0.12);
    color: var(--blue);
    border: 1px solid rgba(79,142,247,0.2);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Transcript list rows */
.tr-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.tr-row:last-child { border-bottom: none; }
.tr-row:hover { background: rgba(255,255,255,0.02); }
.tr-row-flagged { border-left: 3px solid var(--orange); }

.tr-row-info { flex: 1; min-width: 0; }

.tr-child-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.tr-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Nunito', sans-serif;
}

.tr-words {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    margin-top: 2px;
}

.tr-row-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.tr-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
}

.tr-badge-pending    { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); }
.tr-badge-processing { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); animation: pulse 2s infinite; }
.tr-badge-done       { background: rgba(52,211,153,0.12); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.tr-badge-failed     { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }

.tr-risk {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
}

.tr-risk-low    { background: rgba(251,191,36,0.1);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.tr-risk-medium { background: var(--orange-dim);      color: var(--orange); border: 1px solid rgba(201,168,76,0.2); }
.tr-risk-high   { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

.tr-row-action { flex-shrink: 0; min-width: 60px; text-align: right; }

/* ── Transcript Modal ─────────────────────────────────────── */

.transcript-modal-content {
    max-width: 780px;
    width: 92vw;
    max-height: 88vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tm-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    margin-top: 4px;
}

/* AI summary bar */
.tm-ai-bar {
    background: rgba(79,142,247,0.06);
    border: 1px solid rgba(79,142,247,0.14);
    border-radius: 10px;
    padding: 16px;
    margin: 16px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.tm-ai-summary-block { flex: 1; min-width: 200px; }

.tm-ai-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--blue);
    opacity: 0.8;
    margin-bottom: 6px;
}

.tm-ai-summary-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
}

.tm-ai-chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    flex-shrink: 0;
}

.tm-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    white-space: nowrap;
}

.chip-positive { background: rgba(52,211,153,0.12); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.chip-neutral  { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); }
.chip-warn     { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(201,168,76,0.2); }
.chip-critical { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

/* Flags block */
.tm-flags-block {
    background: rgba(239,68,68,0.04);
    border: 1px solid rgba(239,68,68,0.14);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
}

.tm-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.tm-flags-list { display: flex; flex-direction: column; gap: 8px; }

.tm-flag-item {
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid;
}

.tm-flag-low    { background: rgba(251,191,36,0.06);  border-color: #fbbf24; }
.tm-flag-medium { background: var(--orange-dim);       border-color: var(--orange); }
.tm-flag-high   { background: rgba(239,68,68,0.08);   border-color: #f87171; }

.tm-flag-category {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-family: 'Nunito', sans-serif;
}

.tm-flag-quote {
    font-size: 13px;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.5;
}

/* Full transcript body */
.tm-transcript-body {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
    font-family: 'Georgia', serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
    max-height: 320px;
    overflow-y: auto;
}

/* Keywords */
.tm-keywords-block { margin-top: 16px; }

.tm-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tm-keyword {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Audit block */
.tm-audit-block {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tm-audit-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    line-height: 1.5;
}

.tm-shared-flag {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 8px;
    font-size: 13px;
    color: #f87171;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50%       { transform: scaleY(1.5); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.65; }
}

/* ── Kid Color Scheme Classes ─────────────────────────────── */
.kid-color-coral  { --kid-accent: var(--kid-coral);  }
.kid-color-teal   { --kid-accent: var(--kid-teal);   }
.kid-color-purple { --kid-accent: var(--kid-purple); }
.kid-color-gold   { --kid-accent: var(--kid-gold);   }
.kid-color-mint   { --kid-accent: var(--kid-mint);   }
.kid-color-pink   { --kid-accent: var(--kid-pink);   }
.kid-color-sky    { --kid-accent: var(--kid-sky);    }
.kid-color-lime   { --kid-accent: var(--kid-lime);   }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: 1fr; }
    .live-calls, .my-cases, .availability-manager, .cases-overview,
    .upcoming-all-sessions, .pending-actions, .quick-links,
    .upcoming-sessions, .call-requests { grid-column: 1; }
    .children-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .cases-grid    { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open { transform: translateX(0); }

    .main-content {
        margin-left: 0;
        padding: 20px;
        max-width: 100vw;
    }

    .stats-grid { grid-template-columns: 1fr; gap: 14px; }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .topbar-right { width: 100%; justify-content: space-between; }

    .modal-content { padding: 24px; margin: 20px; }
    .modal-actions { flex-direction: column; }
    .availability-grid { overflow-x: scroll; }
}

@media (max-width: 480px) {
    .dashboard-container { flex-direction: column; }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .page-title { font-size: 22px; }
    .stats-grid { gap: 12px; }
    .stat-card  { padding: 16px; }
    .stat-icon  { width: 44px; height: 44px; font-size: 20px; }
    .stat-number { font-size: 24px; }
    .panel-header { padding: 16px; }
    .panel-header h2 { font-size: 16px; }
    .children-grid { grid-template-columns: 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
    .links-grid { grid-template-columns: repeat(2, 1fr); }
}
