@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --border-subtle: #e2e8f0;
    --border-highlight: #cbd5e1;
    
    --primary: #e11d48;
    --primary-hover: #be123c;
    --primary-glow: rgba(225, 29, 72, 0.15);
    
    --accent-gold: #d97706;
    --accent-emerald: #059669;
    --accent-indigo: #4f46e5;
    --accent-cyan: #0891b2;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 9999px;

    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);

    --app-topbar-height: 76px;
}

html, body {
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

#wrapper {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

/* Sidebar Desktop - Clean Light with Subtle Border */
.app-sidebar {
    width: 270px;
    background: #ffffff;
    border-right: 1px solid var(--border-subtle);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-icon-box {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}
.brand-icon-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; background: #fff; padding: 4px; }
.brand-upload-preview { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px dashed #d8cdb9; border-radius: 14px; background: #fbfaf8; }
.brand-upload-preview img, .brand-upload-preview > i { width: 64px; height: 64px; object-fit: contain; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; color: var(--cronos-gold); font-size: 2rem; }
.table-logo-thumb, .table-logo-fallback { width: 34px; height: 34px; object-fit: contain; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #f7f5f2; color: var(--cronos-gold); }

.sidebar-menu {
    padding: 1.25rem 0.75rem;
}

.nav-category {
    padding: 0.75rem 1rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.sidebar-menu .nav-link {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    margin-bottom: 3px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 500;
    font-size: 0.925rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu .nav-link i {
    font-size: 1.15rem;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-menu .nav-link:hover {
    color: var(--text-primary);
    background: #f1f5f9;
}

.sidebar-menu .nav-link:hover i {
    color: var(--text-primary);
}

.sidebar-menu .nav-link.active {
    color: var(--primary);
    background: #fff1f2;
    font-weight: 700;
}

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

/* Main Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.app-topbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 1.75rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.app-content {
    padding: 1.75rem;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

/* Cards & Surfaces */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    color: var(--text-primary);
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.15rem 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

/* Stat Cards */
.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.35rem;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-icon.primary { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.stat-icon.success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.stat-icon.warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.stat-icon.info { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }

/* BJJ Belt Badges */
.belt-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.belt-branca { background: #ffffff; color: #1e293b; border: 1px solid #cbd5e1; }
.belt-azul { background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%); color: #ffffff; }
.belt-roxa { background: linear-gradient(180deg, #9333ea 0%, #7e22ce 100%); color: #ffffff; }
.belt-marrom { background: linear-gradient(180deg, #78350f 0%, #592408 100%); color: #ffffff; }
.belt-preta { background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%); color: #ffffff; border: 1px solid #ef4444; }
.belt-cinza { background: linear-gradient(180deg, #64748b 0%, #475569 100%); color: #ffffff; }
.belt-amarela { background: linear-gradient(180deg, #eab308 0%, #ca8a04 100%); color: #ffffff; }
.belt-laranja { background: linear-gradient(180deg, #f97316 0%, #ea580c 100%); color: #ffffff; }
.belt-verde { background: linear-gradient(180deg, #16a34a 0%, #15803d 100%); color: #ffffff; }

/* Belt Degrees Tip Markings */
.degree-stripes {
    display: inline-flex;
    gap: 3px;
    margin-left: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 4px;
    border-radius: 2px;
}
.degree-stripe {
    width: 4px;
    height: 12px;
    background: #ffffff;
    border-radius: 1px;
}
.belt-branca .degree-stripe {
    background: #ffffff;
}

/* Progression Box Light */
.progression-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.progression-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* Custom Progress Bar */
.progress {
    background-color: #e2e8f0;
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-bar {
    border-radius: var(--radius-pill);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-danger,
.btn-primary {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
    color: #ffffff;
}

.btn-danger:hover,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-outline-primary {
    color: var(--cronos-red, #b5122b);
    border-color: var(--cronos-red, #b5122b);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: var(--cronos-red, #b5122b);
    border-color: var(--cronos-red, #b5122b);
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
    color: #ffffff;
}

.btn-outline-secondary {
    border-color: var(--border-subtle);
    color: var(--text-secondary);
    background: #ffffff;
}

.btn-outline-secondary:hover {
    background: #f8fafc;
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

/* Form Inputs Light Mode */
.form-control, .form-select {
    background-color: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
    color: var(--text-primary);
}

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

.input-group-text {
    background-color: #f8fafc;
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

/* DataTables Ultra Clean Light Theme */
.dataTables_wrapper {
    color: var(--text-secondary);
}

table.dataTable {
    border-collapse: collapse !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

table.dataTable thead th {
    background: #f8fafc !important;
    color: var(--text-secondary) !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle) !important;
    padding: 0.85rem 1rem !important;
}

table.dataTable tbody tr {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

table.dataTable tbody tr:hover {
    background: #f8fafc !important;
}

table.dataTable tbody td {
    padding: 0.95rem 1rem !important;
    color: var(--text-primary);
    border-top: 1px solid #f1f5f9;
}

.dataTables_paginate .paginate_button {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-secondary) !important;
    background: #ffffff !important;
}

.dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Mobile Bottom Navigation — Modern Native Experience (iOS & Material 3)
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 1050;
    min-height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding: 0.35rem 0.5rem calc(0.48rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 -2px 14px rgba(15, 23, 42, 0.04);
    align-items: center;
    justify-content: space-around;
    gap: 0.2rem;
}

.mobile-bottom-nav a,
.mobile-bottom-nav.student-bottom-nav a,
.mobile-bottom-nav.staff-bottom-nav a,
.mobile-bottom-nav .mobile-nav-more-toggle {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0.25rem 0.15rem 0.12rem;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: color 0.18s ease, transform 0.12s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.mobile-bottom-nav a i,
.mobile-bottom-nav.student-bottom-nav a i,
.mobile-bottom-nav.staff-bottom-nav a i,
.mobile-bottom-nav .mobile-nav-more-toggle i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 28px;
    border-radius: 14px;
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 0;
    color: #64748b;
    position: relative;
    transition: background-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-bottom-nav a span,
.mobile-bottom-nav.student-bottom-nav a span,
.mobile-bottom-nav.staff-bottom-nav a span,
.mobile-bottom-nav .mobile-nav-more-toggle span {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.18s ease;
}

/* Tap micro-interaction */
.mobile-bottom-nav a:active i,
.mobile-bottom-nav .mobile-nav-more-toggle:active i,
.mobile-bottom-nav a.is-tapping i {
    transform: scale(0.88);
}

/* Active State — Refined Pill (Material 3 / WhatsApp Modern) */
.mobile-bottom-nav a.active,
.mobile-bottom-nav.student-bottom-nav a.active,
.mobile-bottom-nav.staff-bottom-nav a.active,
.mobile-bottom-nav .mobile-nav-more-toggle.active {
    color: var(--cronos-red, #b91c1c);
}

.mobile-bottom-nav a.active i,
.mobile-bottom-nav.student-bottom-nav a.active i,
.mobile-bottom-nav.staff-bottom-nav a.active i,
.mobile-bottom-nav .mobile-nav-more-toggle.active i {
    background-color: #fee2e2;
    color: var(--cronos-red, #b91c1c);
    transform: scale(1.04);
}

.mobile-bottom-nav a.active span,
.mobile-bottom-nav.student-bottom-nav a.active span,
.mobile-bottom-nav.staff-bottom-nav a.active span,
.mobile-bottom-nav .mobile-nav-more-toggle.active span {
    color: var(--cronos-red, #b91c1c);
    font-weight: 700;
}

.mobile-bottom-nav a.active::after,
.mobile-bottom-nav.student-bottom-nav a.active::after,
.mobile-bottom-nav.staff-bottom-nav a.active::after {
    display: none;
}

/* Bottom Nav Dropdowns (More & Attendances) */
.mobile-bottom-nav .mobile-nav-more {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.mobile-bottom-nav .mobile-nav-more-toggle {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: 0;
    background: transparent;
    font-family: inherit;
    line-height: normal;
    cursor: pointer;
}

.mobile-bottom-nav .mobile-nav-more-toggle:focus { outline: none; }
.mobile-bottom-nav .mobile-nav-more-toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(185, 28, 28, .25);
}

.mobile-nav-more-menu {
    position: absolute;
    right: -0.25rem;
    bottom: calc(100% + 0.65rem);
    width: 205px;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    animation: nav-more-enter 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1060;
    box-sizing: border-box;
}

.mobile-nav-attendances-menu {
    right: -2.85rem;
    max-width: calc(100vw - 24px);
}

.mobile-nav-more-menu[hidden] {
    display: none !important;
}

@keyframes nav-more-enter {
    from { opacity: 0; transform: translateY(6px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Ensure items are strictly aligned to the left (beginning of the line) */
.mobile-bottom-nav .mobile-nav-more-menu a,
.mobile-bottom-nav.student-bottom-nav .mobile-nav-more-menu a,
.mobile-bottom-nav.hybrid-bottom-nav .mobile-nav-more-menu a,
.mobile-nav-more-menu a {
    flex: 0 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 0.75rem !important;
    padding: 0.58rem 0.75rem !important;
    color: #334155 !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Icon slot - fixed width, aligned at start of the line */
.mobile-bottom-nav .mobile-nav-more-menu a i,
.mobile-bottom-nav.student-bottom-nav .mobile-nav-more-menu a i,
.mobile-bottom-nav.hybrid-bottom-nav .mobile-nav-more-menu a i,
.mobile-nav-more-menu a i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.5rem !important;
    min-width: 1.5rem !important;
    max-width: 1.5rem !important;
    height: 1.5rem !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    color: currentColor !important;
    background: transparent !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    transform: none !important;
}

/* Text label aligned left */
.mobile-bottom-nav .mobile-nav-more-menu a span,
.mobile-bottom-nav.student-bottom-nav .mobile-nav-more-menu a span,
.mobile-bottom-nav.hybrid-bottom-nav .mobile-nav-more-menu a span,
.mobile-nav-more-menu a span {
    display: inline-block !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
    color: inherit !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 1 auto !important;
}

/* Hover & Active / Tap states */
.mobile-bottom-nav .mobile-nav-more-menu a:hover,
.mobile-bottom-nav .mobile-nav-more-menu a:active,
.mobile-nav-more-menu a:hover,
.mobile-nav-more-menu a:active {
    background: #fee2e2 !important;
    color: var(--cronos-red, #b91c1c) !important;
}

.mobile-bottom-nav .mobile-nav-more-menu a:active i,
.mobile-bottom-nav .mobile-nav-more-menu a.is-tapping i,
.mobile-nav-more-menu a:active i,
.mobile-nav-more-menu a.is-tapping i {
    transform: scale(0.92) !important;
}

.mobile-bottom-nav .mobile-nav-more-menu a.active,
.mobile-nav-more-menu a.active {
    background: #fee2e2 !important;
    color: var(--cronos-red, #b91c1c) !important;
    font-weight: 700 !important;
}

.mobile-bottom-nav .mobile-nav-more-menu a.active i,
.mobile-nav-more-menu a.active i {
    background: transparent !important;
    color: var(--cronos-red, #b91c1c) !important;
    transform: none !important;
}

/* Dark Theme Support */
[data-bs-theme="dark"] .mobile-bottom-nav {
    background: rgba(17, 24, 39, 0.92);
    border-top-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .mobile-bottom-nav a,
[data-bs-theme="dark"] .mobile-bottom-nav.student-bottom-nav a,
[data-bs-theme="dark"] .mobile-bottom-nav.staff-bottom-nav a,
[data-bs-theme="dark"] .mobile-bottom-nav .mobile-nav-more-toggle {
    color: #94a3b8;
}

[data-bs-theme="dark"] .mobile-bottom-nav a i,
[data-bs-theme="dark"] .mobile-bottom-nav.student-bottom-nav a i,
[data-bs-theme="dark"] .mobile-bottom-nav.staff-bottom-nav a i,
[data-bs-theme="dark"] .mobile-bottom-nav .mobile-nav-more-toggle i {
    color: #94a3b8;
}

[data-bs-theme="dark"] .mobile-bottom-nav a span,
[data-bs-theme="dark"] .mobile-bottom-nav.student-bottom-nav a span,
[data-bs-theme="dark"] .mobile-bottom-nav.staff-bottom-nav a span,
[data-bs-theme="dark"] .mobile-bottom-nav .mobile-nav-more-toggle span {
    color: #94a3b8;
}

[data-bs-theme="dark"] .mobile-bottom-nav a.active,
[data-bs-theme="dark"] .mobile-bottom-nav.student-bottom-nav a.active,
[data-bs-theme="dark"] .mobile-bottom-nav.staff-bottom-nav a.active,
[data-bs-theme="dark"] .mobile-bottom-nav .mobile-nav-more-toggle.active {
    color: #ef4444;
}

[data-bs-theme="dark"] .mobile-bottom-nav a.active i,
[data-bs-theme="dark"] .mobile-bottom-nav.student-bottom-nav a.active i,
[data-bs-theme="dark"] .mobile-bottom-nav.staff-bottom-nav a.active i,
[data-bs-theme="dark"] .mobile-bottom-nav .mobile-nav-more-toggle.active i {
    background-color: rgba(239, 68, 68, 0.18);
    color: #ef4444;
}

[data-bs-theme="dark"] .mobile-bottom-nav a.active span,
[data-bs-theme="dark"] .mobile-bottom-nav.student-bottom-nav a.active span,
[data-bs-theme="dark"] .mobile-bottom-nav.staff-bottom-nav a.active span,
[data-bs-theme="dark"] .mobile-bottom-nav .mobile-nav-more-toggle.active span {
    color: #ef4444;
}

[data-bs-theme="dark"] .mobile-nav-more-menu {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .mobile-bottom-nav .mobile-nav-more-menu a,
[data-bs-theme="dark"] .mobile-bottom-nav.student-bottom-nav .mobile-nav-more-menu a,
[data-bs-theme="dark"] .mobile-bottom-nav.hybrid-bottom-nav .mobile-nav-more-menu a,
[data-bs-theme="dark"] .mobile-nav-more-menu a {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .mobile-bottom-nav .mobile-nav-more-menu a:hover,
[data-bs-theme="dark"] .mobile-bottom-nav .mobile-nav-more-menu a:active,
[data-bs-theme="dark"] .mobile-nav-more-menu a:hover,
[data-bs-theme="dark"] .mobile-nav-more-menu a:active {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
}

[data-bs-theme="dark"] .mobile-bottom-nav .mobile-nav-more-menu a.active,
[data-bs-theme="dark"] .mobile-nav-more-menu a.active {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #ef4444 !important;
}

[data-bs-theme="dark"] .mobile-bottom-nav .mobile-nav-more-menu a.active i,
[data-bs-theme="dark"] .mobile-nav-more-menu a.active i {
    background: transparent !important;
    color: #ef4444 !important;
    transform: none !important;
}

/* Modals */
.modal {
    z-index: 1065;
}
.modal-backdrop {
    z-index: 1060;
}
.modal-content {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    color: var(--text-primary);
}

.modal-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
}

/* Badges Subtles */
.bg-success-subtle { background-color: #ecfdf5 !important; color: #047857 !important; border: 1px solid #a7f3d0; }
.bg-warning-subtle { background-color: #fffbeb !important; color: #b45309 !important; border: 1px solid #fde68a; }
.bg-danger-subtle { background-color: #fff1f2 !important; color: #be123c !important; border: 1px solid #fecdd3; }
.bg-secondary-subtle { background-color: #f1f5f9 !important; color: #475569 !important; border: 1px solid #cbd5e1; }
[x-cloak] { display: none !important; }
.mobile-sidebar-backdrop { display: none; }

/* Mobile Adaptations */
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1040;
    }
    .app-sidebar.show {
        transform: translateX(280px);
    }
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
    }
    .app-content {
        padding: 1rem;
        padding-bottom: 5.5rem;
    }
    .app-topbar {
        padding: 0.75rem 1rem;
    }
    .mobile-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1035;
        background: rgba(17, 19, 24, .46);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }
}

/* --------------------------------------------------------------------------
   Cronos BJJ Premium UI layer
   -------------------------------------------------------------------------- */
:root {
    --cronos-ink: #111318;
    --cronos-ink-soft: #242833;
    --cronos-canvas: #f6f5f2;
    --cronos-surface: #ffffff;
    --cronos-line: #e7e5e0;
    --cronos-red: #b5122b;
    --cronos-red-dark: #8f0d20;
    --cronos-gold: #c89b3c;
    --cronos-muted: #7a7f8b;
    --cronos-radius: 16px;
    --cronos-shadow: 0 12px 35px rgba(17, 19, 24, .06);
    --cronos-shadow-lg: 0 22px 55px rgba(17, 19, 24, .12);
}

html { scroll-behavior: smooth; }
body {
    background: var(--cronos-canvas);
    color: var(--cronos-ink);
}

a { color: var(--cronos-red); }
a:hover { color: var(--cronos-red-dark); }

.app-sidebar {
    width: 282px;
    background: var(--cronos-ink);
    border-right: 0;
    box-shadow: 12px 0 40px rgba(17, 19, 24, .08);
}
.sidebar-brand {
    padding: 1.55rem 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-icon-box {
    background: linear-gradient(145deg, var(--cronos-red), #e04755);
    border-radius: 13px;
    box-shadow: 0 9px 22px rgba(181,18,43,.28);
}
.sidebar-brand .text-dark,
.sidebar-brand .text-secondary { color: #fff !important; }
.sidebar-brand .text-secondary { opacity: .58; }
.sidebar-menu { padding: 1.3rem .8rem; }
.nav-category {
    color: rgba(255,255,255,.4);
    padding: 1rem .9rem .45rem;
    font-size: .66rem;
    letter-spacing: .14em;
}
.sidebar-menu .nav-link {
    color: rgba(255,255,255,.66);
    border-radius: 11px;
    padding: .78rem .9rem;
    margin-bottom: 4px;
}
.sidebar-menu .nav-link i { color: rgba(255,255,255,.42); }
.sidebar-menu .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
}
.sidebar-menu .nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(181,18,43,.95), rgba(181,18,43,.68));
    box-shadow: 0 8px 20px rgba(181,18,43,.2);
}
.sidebar-menu .nav-link.active i { color: #fff; }
.app-sidebar .border-top { border-color: rgba(255,255,255,.08) !important; }
.app-sidebar .text-dark { color: #fff !important; }

.app-topbar {
    background: rgba(246,245,242,.9);
    border-bottom: 1px solid var(--cronos-line);
    padding: 1rem 2rem;
}
.app-topbar h5 { letter-spacing: -.03em; }
.app-topbar .eyebrow { font-size: .58rem; letter-spacing: .16em; }
.topbar-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; }
.skip-link { position: fixed; z-index: 2000; top: 1rem; left: 1rem; padding: .7rem 1rem; background: var(--cronos-ink); color: #fff; border-radius: 8px; }
.app-content { padding: 1rem; max-width: 1680px; width: 100%; }
.app-main { background: var(--cronos-canvas); }

.card, .stat-card {
    border: 1px solid var(--cronos-line) !important;
    border-radius: var(--cronos-radius) !important;
    box-shadow: var(--cronos-shadow);
}
.card:hover { box-shadow: 0 15px 38px rgba(17,19,24,.075); }
.card-header {
    background: var(--cronos-surface) !important;
    padding: 1.3rem 1.5rem;
}
.card-header h5, .card-header h6 { letter-spacing: -.025em; }
.stat-card { padding: 1.25rem 1.35rem; }
.stat-card h3 { letter-spacing: -.05em; font-size: 2rem; }
.stat-icon { border-radius: 13px; }

.btn { border-radius: 10px; letter-spacing: -.01em; }
.btn-danger {
    background: linear-gradient(135deg, var(--cronos-red), var(--cronos-red-dark));
    box-shadow: 0 8px 18px rgba(181,18,43,.2);
}
.btn-danger:hover { background: linear-gradient(135deg, #cb1d3a, var(--cronos-red)); }
.btn-outline-danger { color: var(--cronos-red); border-color: #e7aab3; }
.btn-outline-danger:hover { background: var(--cronos-red); border-color: var(--cronos-red); }
.btn-light { background: #fff; border-color: var(--cronos-line); }

.form-label { color: #4f5562; font-size: .78rem; letter-spacing: .01em; }
.form-control, .form-select {
    min-height: 44px;
    border-color: #deddd8;
    border-radius: 10px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--cronos-red);
    box-shadow: 0 0 0 4px rgba(181,18,43,.1);
}
.input-group-text { border-color: #deddd8; }

table.dataTable, .table { border-color: var(--cronos-line) !important; }
table.dataTable thead th, .table thead th {
    background: #faf9f7 !important;
    color: #777b85 !important;
    font-size: .68rem;
    letter-spacing: .1em;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
table.dataTable tbody td, .table tbody td { padding-top: 1rem !important; padding-bottom: 1rem !important; }
table.dataTable tbody tr:hover, .table-hover tbody tr:hover { background: #fcfbfa !important; }

.progression-box {
    background: radial-gradient(circle at 90% 10%, rgba(200,155,60,.18), transparent 30%), linear-gradient(135deg, #1b1e26, #0d0f13);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    box-shadow: var(--cronos-shadow-lg);
}
.progression-box .text-secondary { color: rgba(255,255,255,.62) !important; }
.progression-box .progress { background: rgba(255,255,255,.14); }
.progression-box .progress-bar { background: linear-gradient(90deg, var(--cronos-red), var(--cronos-gold)) !important; }
.belt-badge { border-radius: 7px; }
.bg-danger-subtle { background: #fff0f2 !important; color: var(--cronos-red) !important; }

.alert { border-radius: 12px; }
.dropdown-menu { border: 1px solid var(--cronos-line); border-radius: 12px; padding: .45rem; box-shadow: var(--cronos-shadow-lg); }
.dropdown-item { border-radius: 8px; padding: .6rem .75rem; }
.dropdown-item:hover { background: #faf0f2; }
.message { border-radius: 11px; border: 1px solid var(--cronos-line); box-shadow: var(--cronos-shadow); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(200,155,60,.55); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.page-hero {
    background: linear-gradient(115deg, var(--cronos-ink), #272b35);
    color: #fff;
    border-radius: 20px;
    padding: 1.65rem 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--cronos-shadow-lg);
    position: relative;
    overflow: hidden;
}
.page-hero::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; background: radial-gradient(circle, rgba(200,155,60,.22), transparent 68%); }
.page-hero > * { position: relative; z-index: 1; }
.eyebrow { color: var(--cronos-gold); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.empty-state { padding: 3.5rem 1.5rem; text-align: center; color: var(--cronos-muted); }
.empty-state i { color: #c7c8cc; font-size: 3rem; display: block; margin-bottom: .8rem; }
.chart-wrap { height: 220px; position: relative; }
.chart-wrap-doughnut { height: 220px; }
.icon-chip { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.icon-chip-danger { background: #fff0f2; color: var(--cronos-red); }
.icon-chip-gold { background: #fbf5e8; color: #9a731f; }
.cronos-timeline { position: relative; padding-left: 1.5rem; }
.cronos-timeline::before { content: ''; position: absolute; left: 5px; top: 5px; bottom: 5px; width: 2px; background: #eee3d0; }
.cronos-timeline-item { position: relative; padding: 0 0 1.3rem 1rem; }
.cronos-timeline-item:last-child { padding-bottom: 0; }
.cronos-timeline-dot { position: absolute; left: -1.5rem; top: 3px; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--cronos-gold); box-shadow: 0 0 0 2px var(--cronos-gold); }
.dataTables_processing { background: rgba(255,255,255,.9) !important; border: 1px solid var(--cronos-line) !important; border-radius: 10px !important; box-shadow: var(--cronos-shadow); color: var(--cronos-red) !important; font-weight: 700; }
.filters-panel { background: #fbfaf8 !important; border-color: var(--cronos-line) !important; }
@media (max-width: 575.98px) { .filters-panel { padding: .75rem !important; } .filters-panel .form-label { margin-bottom: .25rem; } .filters-panel .btn { width: 100%; } }

@media (max-width: 991.98px) {
    :root {
        --app-topbar-height: 69px;
    }
    .app-content {
        padding: 0.65rem 0.65rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
        overflow-x: clip;
        max-width: 100%;
    }
    .app-content > .row {
        margin-left: 0;
        margin-right: 0;
    }
    .app-topbar { padding: .8rem 1.1rem; }
    .app-sidebar { background: var(--cronos-ink); }
    .page-hero { padding: 1.25rem; border-radius: 16px; }
}
@media (max-width: 575.98px) {
    .card-header { padding: 1rem; }
    .card-body { padding: 1rem; }
    .stat-card { padding: 1rem; gap: .75rem; }
    .stat-icon { width: 42px; height: 42px; font-size: 1.1rem; }
    .stat-card h3 { font-size: 1.55rem; }
}

/* Refined application topbar */
.app-topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .8rem 2rem;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(220,218,212,.8);
    box-shadow: 0 8px 24px rgba(31,35,43,.035);
}
.topbar-heading, .topbar-actions, .topbar-profile, .topbar-action { display: flex; align-items: center; }
.topbar-heading { min-width: 0; gap: .8rem; }
.topbar-title-wrap { min-width: 0; }
.topbar-kicker { display: flex; align-items: center; gap: .35rem; color: var(--cronos-red); font-size: .59rem; font-weight: 800; letter-spacing: .16em; line-height: 1; text-transform: uppercase; }
.topbar-kicker i { font-size: .68rem; }
.topbar-kicker .topbar-site-icon { width: .68rem; height: .68rem; flex: 0 0 .68rem; object-fit: contain; display: block; }
.topbar-title { overflow: hidden; max-width: min(52vw, 520px); margin: .35rem 0 0; color: var(--cronos-ink); font-size: 1.08rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { gap: .4rem; }
.topbar-action { position: relative; justify-content: center; gap: .45rem; min-height: 40px; padding: .5rem .7rem; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #737985; font-size: .77rem; font-weight: 700; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.topbar-action i { font-size: 1rem; }
.topbar-action:hover, .topbar-action:focus-visible, .topbar-action[aria-expanded="true"] { border-color: #ebe5e0; background: #faf8f6; color: var(--cronos-red); }
.topbar-action:active { transform: translateY(1px); }
.content-update-dot { position: absolute; top: 5px; right: 7px; width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; background: var(--cronos-red); opacity: 0; pointer-events: none; }
.mobile-bottom-nav a i { position: relative; }
.mobile-bottom-nav a i > .content-update-dot { top: 2px; right: 6px; }
.has-content-update .content-update-dot { opacity: 1; animation: content-update-pulse 1.8s ease-in-out infinite; }
@keyframes content-update-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(181,18,43,.45); } 50% { box-shadow: 0 0 0 4px rgba(181,18,43,0); } }
.topbar-notification-badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: var(--cronos-red); color: #fff; font-size: .55rem; font-weight: 800; line-height: 12px; text-align: center; }
.topbar-belt { margin-left: .15rem; padding-left: .7rem; border-left: 1px solid #ebe8e3; }
.topbar-belt .bjj-belt-badge { height: 28px; border-radius: 5px; box-shadow: 0 3px 9px rgba(17,19,24,.14); font-size: .69rem; }
.topbar-belt .bjj-belt-badge .belt-color-segment { padding: 0 .72rem; }
.topbar-belt .bjj-belt-badge .belt-sleeve-segment { width: 29px; min-width: 29px; gap: 2px; }
.topbar-belt .bjj-belt-badge .belt-degree-stripe { width: 3px; height: 17px; }
.topbar-profile { gap: .55rem; margin-left: .25rem; padding: .28rem .2rem .28rem .35rem; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--cronos-ink); transition: background .18s ease, border-color .18s ease; }
.topbar-profile:hover, .topbar-profile:focus-visible, .topbar-profile[aria-expanded="true"] { border-color: #ebe5e0; background: #faf8f6; }
.topbar-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: linear-gradient(145deg, var(--cronos-red), #8c0e23); color: #fff; box-shadow: 0 5px 12px rgba(181,18,43,.18); font-size: .8rem; font-weight: 800; }
.topbar-profile-copy { flex-direction: column; align-items: flex-start; gap: .12rem; line-height: 1; }
.topbar-profile-copy strong { max-width: 100px; overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.topbar-profile-copy small { color: #92959d; font-size: .61rem; font-weight: 600; }
.topbar-profile-chevron { margin-left: .1rem; color: #9b9da4; font-size: .65rem; }
.topbar-profile-menu { min-width: 260px; max-height: calc(100vh - 1rem); overflow-y: auto; }
.profile-dropdown-header { display: flex; align-items: center; gap: .7rem; padding: .75rem .7rem .65rem; }
.profile-dropdown-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, var(--cronos-red), #8c0e23); color: #fff; font-size: .82rem; font-weight: 800; }
.profile-dropdown-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-dropdown-identity { min-width: 0; display: flex; flex-direction: column; gap: .18rem; }
.profile-dropdown-identity strong { overflow: hidden; color: var(--cronos-ink); font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-dropdown-identity small { overflow: hidden; color: #92959d; font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-dropdown-section { padding: .5rem .75rem .2rem; color: #a0a2a8; font-size: .59rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.topbar-profile-menu .dropdown-item { min-height: 40px; display: flex; align-items: center; border-radius: 8px; font-size: .76rem; }
.topbar-profile-menu .dropdown-item i { width: 18px; color: #9b2139; text-align: center; }
.topbar-menu-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #e8e4df; border-radius: 10px; background: #fff; color: var(--cronos-ink); font-size: 1.2rem; }
.topbar-menu-button:hover { border-color: #d6c0c3; color: var(--cronos-red); }
@media (max-width: 991.98px) { .app-topbar { padding: .75rem 1.1rem; } .topbar-title { max-width: 45vw; } }
@media (max-width: 575.98px) { .app-topbar { min-height: 64px; gap: .6rem; padding: .65rem .85rem; } .topbar-kicker { font-size: .52rem; } .topbar-title { max-width: 48vw; margin-top: .25rem; font-size: .95rem; } .topbar-actions { gap: .15rem; } .topbar-action { width: 36px; min-height: 36px; padding: .35rem; } .topbar-action-label { display: none; } .topbar-profile { margin-left: .05rem; } .topbar-profile-chevron { display: none; } .topbar-profile-menu { min-width: min(260px, calc(100vw - 1rem)); } }

/* Refined navigation sidebar */
.app-sidebar {
    width: 280px;
    height: 100vh;
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    flex: 0 0 280px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #13151b 0%, #0d0f14 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.28);
    z-index: 1040;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
    position: relative;
    min-height: 84px;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sidebar-brand::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    bottom: -1px;
    left: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, #e11d48, transparent 75%);
    opacity: 0.85;
}
.brand-identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}
.brand-icon-box {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: linear-gradient(140deg, #e11d48 0%, #881337 100%);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
}
.brand-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    background: #ffffff;
    border-radius: 10px;
}
.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}
.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
}
.text-brand-accent {
    color: #ff3b5c;
    text-shadow: 0 0 16px rgba(255, 59, 92, 0.5);
}
.brand-team-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.12rem 0.45rem;
    margin-top: 0.25rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65rem;
    font-weight: 500;
    max-width: 165px;
}
.team-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}
.sidebar-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.18s ease;
}
.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Sidebar Navigation Menu */
.sidebar-menu {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.9rem 0.75rem 1.25rem;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(225, 29, 72, 0.5) rgba(255, 255, 255, 0.04);
}
.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}
.sidebar-menu::-webkit-scrollbar-track {
    margin: 0.35rem 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.03);
}
.sidebar-menu::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(225, 29, 72, 0.4);
}
.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #e11d48;
}

.nav-category {
    display: flex;
    align-items: center;
    margin: 1.15rem 0.5rem 0.35rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.nav-category:first-of-type {
    margin-top: 0.25rem;
}
.nav-category::after {
    content: '';
    flex: 1;
    height: 1px;
    margin-left: 0.65rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.09), transparent);
}

.sidebar-menu .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-height: 40px;
    padding: 0.62rem 0.8rem;
    margin-bottom: 2px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.825rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-menu .nav-link .nav-icon {
    width: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.42);
    transition: transform 0.18s ease, color 0.18s ease;
}
.sidebar-menu .nav-link .nav-icon.text-danger-icon { color: #f43f5e; }
.sidebar-menu .nav-link .nav-icon.text-warning-icon { color: #fbbf24; }
.sidebar-menu .nav-link .nav-icon.text-success-icon { color: #34d399; }
.sidebar-menu .nav-link .nav-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-menu .nav-link:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
    transform: translateX(3px);
}
.sidebar-menu .nav-link:hover .nav-icon {
    color: #ffffff;
    transform: scale(1.1);
}

.sidebar-menu .nav-link.active {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(95deg, rgba(225, 29, 72, 0.95), rgba(159, 18, 57, 0.88));
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.28);
}
.sidebar-menu .nav-link.active::before {
    content: '';
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: -1px;
    width: 3.5px;
    border-radius: 0 4px 4px 0;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}
.sidebar-menu .nav-link.active .nav-icon,
.sidebar-menu .nav-link.active .nav-icon i {
    color: #ffffff !important;
}

/* Sidebar Footer Profile Card */
.sidebar-footer {
    flex: 0 0 auto;
    padding: 0.75rem 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.2);
}
.sidebar-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}
.sidebar-user-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}
.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.sidebar-avatar-wrap {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(140deg, #e11d48, #881337);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sidebar-avatar-fallback {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
}
.sidebar-user-details {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
}
.sidebar-user-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
}
.sidebar-role-pill {
    font-size: 0.61rem;
    font-weight: 600;
    padding: 0.1rem 0.38rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.75);
}
.sidebar-core-pill {
    font-size: 0.61rem;
    color: rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    max-width: 95px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-core-pill i {
    color: #f43f5e;
    font-size: 0.58rem;
}
.sidebar-logout-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.18s ease;
}
.sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        width: 280px;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        left: -280px;
        flex-basis: auto;
    }
    .app-sidebar.show {
        z-index: 1060;
        transform: translateX(280px);
    }
}

@supports not (height: 100dvh) {
    @media (max-width: 991.98px) {
        .app-sidebar {
            height: 100vh;
            min-height: 100vh;
            max-height: 100vh;
        }
    }
}

@media (max-width: 575.98px) {
    .sidebar-footer {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)) !important;
    }
}


/* ── BJJ Belt Badge (Authentic Jiu-Jitsu Ribbons) ─────────── */
.bjj-belt-badge {
    display: inline-flex;
    align-items: stretch;
    height: 26px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.12);
}
.bjj-belt-badge .belt-color-segment {
    padding: 0 10px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.bjj-belt-badge .belt-sleeve-segment {
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 2px;
    border-left: 2px solid rgba(0,0,0,0.25);
    flex-shrink: 0;
}
.bjj-belt-badge .belt-degree-stripe {
    width: 3px;
    height: 16px;
    background: #ffffff;
    border-radius: 0.5px;
}

.bjj-belt-branca .belt-color-segment { background: #f8fafc; color: #1e293b; }
.bjj-belt-branca .belt-sleeve-segment { background: #111827; }
.bjj-belt-branca .belt-degree-stripe { background: #ffffff; }

.bjj-belt-cinza .belt-color-segment { background: #64748b; color: #ffffff; }
.bjj-belt-cinza .belt-sleeve-segment { background: #111827; }

.bjj-belt-amarela .belt-color-segment { background: #eab308; color: #78350f; }
.bjj-belt-amarela .belt-sleeve-segment { background: #111827; }

.bjj-belt-laranja .belt-color-segment { background: #f97316; color: #ffffff; }
.bjj-belt-laranja .belt-sleeve-segment { background: #111827; }

.bjj-belt-verde .belt-color-segment { background: #16a34a; color: #ffffff; }
.bjj-belt-verde .belt-sleeve-segment { background: #111827; }

.bjj-belt-azul .belt-color-segment { background: #2563eb; color: #ffffff; }
.bjj-belt-azul .belt-sleeve-segment { background: #111827; }

.bjj-belt-roxa .belt-color-segment { background: #7e22ce; color: #ffffff; }
.bjj-belt-roxa .belt-sleeve-segment { background: #111827; }

.bjj-belt-marrom .belt-color-segment { background: #78350f; color: #ffffff; }
.bjj-belt-marrom .belt-sleeve-segment { background: #111827; }

.bjj-belt-preta .belt-color-segment { background: #111827; color: #ffffff; }
.bjj-belt-preta .belt-sleeve-segment { background: #dc2626; border-left: 2px solid #ffffff; }

/* ── WhatsApp Button ──────────────────────────────────────── */
.btn-whatsapp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #25D366 !important;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(37,211,102,0.3);
    transition: transform 0.12s ease;
}
.btn-whatsapp-pill:hover {
    background-color: #1ebd5a !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ── Student Profile Info Rows ────────────────────────────── */
.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}
.profile-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.profile-info-label {
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.profile-info-value {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

/* ── Timeline Styles ──────────────────────────────────────── */
.timeline-track {
    position: relative;
    padding-left: 2rem;
}
.timeline-track::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: 2px;
    background: #e2e8f0;
}
.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-node {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e11d48;
    box-shadow: 0 0 0 3px rgba(225,29,72,0.15);
    z-index: 2;
}
.timeline-node.current {
    background: #e11d48;
    box-shadow: 0 0 0 4px rgba(225,29,72,0.25);
}
.timeline-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.timeline-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.timeline-card.current-belt-card {
    border-left: 4px solid #e11d48;
    background: #fffcfc;
}

.notification-center .dropdown-menu { width: min(24rem, calc(100vw - 1.5rem)); border-radius: 1rem; }
@media (max-width: 575.98px) {
    .notification-center { position: static; }
    .notification-center .dropdown-menu {
        /* Anchor to the topbar instead of the bell, preserving both side gutters. */
        inset: calc(100% + .5rem) .85rem auto auto !important;
        transform: none !important;
        margin: 0 !important;
        width: min(24rem, calc(100% - 1.7rem));
        min-width: 0;
    }
}
.notification-menu-items {
    max-height: min(28rem, calc(100dvh - 17rem));
    overflow-y: auto;
    overscroll-behavior: contain;
}
.notification-menu-items::-webkit-scrollbar {
    width: 5px;
}
.notification-menu-items::-webkit-scrollbar-track {
    background: transparent;
}
.notification-menu-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.notification-menu-header {
    padding: 0.85rem 1rem;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}
.notification-menu-header strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.notification-menu-header small {
    font-size: 0.76rem;
    color: #64748b;
}
.notification-menu-header .btn-link,
.notification-menu-header .btn {
    min-height: auto !important;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cronos-red, #b5122b) !important;
    padding: 0;
    text-decoration: none;
}
.notification-menu-header .btn-link:hover,
.notification-menu-header .btn:hover {
    color: var(--cronos-red-dark, #8c0e23) !important;
    text-decoration: underline;
}
.notification-menu-header .btn-link:disabled,
.notification-menu-header .btn:disabled {
    color: #94a3b8 !important;
    text-decoration: none !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.notification-section-title {
    margin: 0;
    padding: 0.45rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.notification-section-title:first-child {
    border-top: none;
}

.notification-menu-item {
    position: relative;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.notification-menu-item:hover {
    background: #f8fafc;
}
.notification-menu-item.is-unread {
    background: #fffcfd;
    border-left-color: var(--cronos-red, #b5122b);
}
.notification-menu-item.is-read {
    background: #ffffff;
    opacity: 0.88;
}
.notification-menu-item.is-read:hover {
    opacity: 1;
}

.notification-menu-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notification-type {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 2.15rem;
    border-radius: 9px;
    font-size: 0.95rem;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: transform 0.15s ease;
}
.notification-menu-item:hover .notification-type {
    transform: scale(1.05);
}
.notification-type-attendance_pending,
.notification-type-attendance_waiting,
.notification-type-attention {
    color: #b45309;
    background: #fef3c7;
    border-color: #fde68a;
}
.notification-type-attendance_approved,
.notification-type-attendance_confirmed {
    color: #059669;
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.notification-type-attendance_rejected {
    color: var(--cronos-red, #b5122b);
    background: #fff0f2;
    border-color: #fecdd3;
}
.notification-type-graduation {
    color: #4f46e5;
    background: #eef2ff;
    border-color: #c7d2fe;
}
.notification-type-social_reaction,
.notification-type-social_comment,
.notification-type-social_mention {
    color: #0284c7;
    background: #f0f9ff;
    border-color: #bae6fd;
}

.notification-copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.15rem;
}

.notification-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.notification-status {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.notification-status-required {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}
.notification-status-new {
    background: #fff0f2;
    color: var(--cronos-red, #b5122b);
    border: 1px solid #fecdd3;
}
.notification-status-resolved {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.notification-status-read {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.notification-time {
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 500;
}

.notification-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 0.15rem 0;
}

.notification-message {
    margin: 0;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.notification-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}
.notification-actions:empty {
    display: none;
}
.notification-actions .btn {
    min-height: auto !important;
    white-space: nowrap;
}

.btn-notification-primary {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 2px 5px rgba(225, 29, 72, 0.25);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.22rem 0.65rem;
    border-radius: 6px;
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.15s ease;
}
.btn-notification-primary:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.35);
    transform: translateY(-1px);
}
.btn-notification-primary:active {
    transform: translateY(0);
}

.btn-notification-secondary {
    background: #f8fafc;
    color: #64748b !important;
    border: 1px solid #e2e8f0;
    font-size: 0.71rem;
    font-weight: 500;
    padding: 0.22rem 0.52rem;
    border-radius: 6px;
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.15s ease;
}
.btn-notification-secondary:hover {
    background: #f1f5f9;
    color: #0f172a !important;
    border-color: #cbd5e1;
}
.btn-notification-secondary:active {
    background: #e2e8f0;
}

.notification-menu-footer-link {
    background: #faf8f6;
    color: var(--cronos-red, #b5122b) !important;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.notification-menu-footer-link:hover {
    background: #f3eee9;
    color: var(--cronos-red-dark, #8c0e23) !important;
}

/* Cores page — modular, mobile-first dashboard */
.cores-dashboard-content { max-width: 1480px; margin: 0 auto; }
.cores-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.cores-stat { min-width: 0; padding: 1rem; background: var(--cronos-surface, #fff); border: 1px solid var(--cronos-line, #e7e5e0); border-radius: 16px; box-shadow: 0 5px 18px rgba(17,19,24,.04); }
.cores-stat__top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; color: #777b85; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cores-stat__top i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: .9rem; }
.cores-stat strong { display: block; margin-top: .6rem; color: var(--cronos-ink, #17191f); font-size: 1.75rem; line-height: 1; letter-spacing: -.06em; }
.cores-stat small { display: block; margin-top: .45rem; overflow: hidden; color: #8a8d95; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.cores-stat--indigo { border-top: 3px solid #6366f1; }.cores-stat--indigo i { color: #4f46e5; background: #eef2ff; }
.cores-stat--green { border-top: 3px solid #10b981; }.cores-stat--green i { color: #059669; background: #ecfdf5; }
.cores-stat--amber { border-top: 3px solid #f59e0b; }.cores-stat--amber i { color: #b45309; background: #fffbeb; }
.cores-stat--red { border-top: 3px solid var(--cronos-red, #b5122b); }.cores-stat--red i { color: var(--cronos-red, #b5122b); background: #fff0f2; }
.cores-workspace { overflow: hidden; background: var(--cronos-surface, #fff); border: 1px solid var(--cronos-line, #e7e5e0); border-radius: 18px; box-shadow: 0 8px 28px rgba(17,19,24,.05); }
.cores-workspace__header { display: flex; flex-direction: column; gap: 1rem; padding: 1.15rem; border-bottom: 1px solid var(--cronos-line, #e7e5e0); }
.cores-eyebrow { color: var(--cronos-gold, #c89b3c); font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cores-workspace h1 { margin: .25rem 0 0; color: var(--cronos-ink, #17191f); font-size: 1.35rem; letter-spacing: -.05em; }
.cores-workspace__header p { margin: .35rem 0 0; color: #858993; font-size: .78rem; }
.cores-workspace__actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.cores-tabs { display: inline-flex; padding: .2rem; background: #f6f5f2; border-radius: 10px; }
.cores-tab { border: 0; border-radius: 8px; padding: .55rem .7rem; background: transparent; color: #777b85; font-size: .74rem; font-weight: 800; }.cores-tab i { margin-right: .25rem; }.cores-tab.active { background: #fff; color: var(--cronos-red, #b5122b); box-shadow: 0 2px 8px rgba(17,19,24,.08); }
.cores-new { padding: .58rem .8rem; font-size: .74rem; font-weight: 800; }
.cores-workspace__body { padding: 1rem; }.cores-grid { display: grid; gap: 1rem; }
.core-card { overflow: hidden; border: 1px solid #e9e7e2; border-radius: 15px; background: #fff; }.core-card__header { display: flex; justify-content: space-between; gap: .75rem; padding: 1rem; border-bottom: 1px solid #eeeae4; }.core-card__identity { display: flex; min-width: 0; align-items: center; gap: .7rem; }.core-card__identity img, .core-card__avatar { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; object-fit: cover; }.core-card__avatar { display: grid; place-items: center; color: var(--cronos-red, #b5122b); background: #fff0f2; font-size: 1.1rem; }.core-card h2 { overflow: hidden; margin: 0; color: #22242b; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }.core-card__identity span:not(.core-card__avatar) { display: block; overflow: hidden; margin-top: .2rem; color: #8a8d95; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }.core-card__identity span i { margin-right: .25rem; }.core-card__readiness { color: var(--cronos-red, #b5122b); font-size: .8rem; font-weight: 800; text-align: right; }.core-card__readiness small { display: block; color: #999ba1; font-size: .58rem; font-weight: 600; white-space: nowrap; }
.core-card__metrics { display: flex; gap: .35rem; padding: .7rem 1rem; border-bottom: 1px solid #f0eee9; color: #777b85; font-size: .67rem; }.core-card__metrics span { flex: 1; padding: .45rem .3rem; border-radius: 8px; background: #f7f7f5; text-align: center; }.core-card__metrics b { display: block; color: #33353d; font-size: .9rem; }.core-card__metrics .is-green b { color: #059669; }.core-card__metrics .is-amber b { color: #b45309; }
.core-card__sections { padding: .7rem 1rem; }.core-group { overflow: hidden; margin-bottom: .5rem; border: 1px solid #edeae4; border-radius: 10px; }.core-group:last-child { margin-bottom: 0; }.core-group__toggle { display: flex; width: 100%; align-items: center; gap: .5rem; padding: .7rem .75rem; border: 0; background: #faf9f7; color: #555963; font-size: .74rem; font-weight: 800; text-align: left; }.core-group__toggle > span { display: flex; flex: 1; align-items: center; gap: .4rem; }.core-group--green .core-group__toggle i:first-child { color: #059669; }.core-group--amber .core-group__toggle i:first-child { color: #d97706; }.core-group__toggle b { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #ecebe7; color: #62656e; font-size: .68rem; }.core-group__chevron { color: #a1a3a8; transition: transform .2s; }.core-group__toggle:not(.collapsed) .core-group__chevron { transform: rotate(180deg); }.core-group__empty { margin: 0; padding: .8rem; color: #9699a0; font-size: .7rem; text-align: center; }.student-list { padding: 0 .75rem; }.student-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid #f1efeb; }.student-row:last-child { border: 0; }.student-row a { display: block; overflow: hidden; color: #2c2e35; font-size: .76rem; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }.student-row a:hover { color: var(--cronos-red, #b5122b); }.student-row small { display: block; overflow: hidden; margin-top: .15rem; color: #999ba1; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }.student-row__status { flex: 0 0 auto; padding: .3rem .45rem; border-radius: 6px; background: #ecfdf5; color: #047857; font-size: .62rem; font-weight: 800; }.student-row__progress { display: flex; flex: 0 0 58px; align-items: center; gap: .3rem; height: 5px; border-radius: 9px; background: #f1f0ed; }.student-row__progress i { display: block; height: 100%; border-radius: inherit; background: #f59e0b; }.student-row__progress small { position: absolute; margin-top: 1.15rem; font-size: .6rem; }
.core-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-top: 1px solid #eeeae4; color: #92959c; font-size: .65rem; }.core-card__footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.core-card__footer i { margin-right: .2rem; }.core-card__footer a { flex: 0 0 auto; color: var(--cronos-red, #b5122b); font-weight: 800; text-decoration: none; }.cores-list-toolbar { display: flex; justify-content: space-between; margin-bottom: .85rem; }.cores-list-toolbar strong, .cores-list-toolbar span { display: block; }.cores-list-toolbar strong { color: #2c2e35; font-size: .9rem; }.cores-list-toolbar span { margin-top: .2rem; color: #9699a0; font-size: .7rem; }.cores-table-wrap { margin: 0 -.25rem; }.cores-empty, .cores-error { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; min-height: 220px; color: #9699a0; text-align: center; }.cores-empty i, .cores-error i { color: #d2d0ca; font-size: 2.3rem; }.cores-empty strong, .cores-error strong { color: #555963; font-size: .9rem; }.cores-empty span, .cores-error span { font-size: .72rem; }
@media (min-width: 768px) { .cores-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }.cores-stat { padding: 1.15rem; }.cores-workspace__header { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.35rem 1.5rem; }.cores-workspace__actions { justify-content: flex-end; }.cores-workspace__body { padding: 1.35rem 1.5rem; }.cores-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; } }
@media (max-width: 575.98px) { .cores-workspace__actions { width: 100%; }.cores-tabs { flex: 1; }.cores-tab { flex: 1; }.cores-new { flex: 0 0 auto; }.cores-workspace__body { padding: .75rem; }.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { float: none; margin-bottom: .6rem; text-align: left; } }
.grad-card-action[aria-label="Acompanhar aluno"] { display: none !important; }

/* Teacher Dashboard — Mobile First, Clean & Fast */
.teacher-dashboard { width: 100%; max-width: 1440px; margin: 0 auto; overflow-x: hidden; }
.teacher-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 20px;
    padding: clamp(1.25rem, 3.5vw, 2.25rem);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, #3b1d28 100%);
    color: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}
.teacher-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 320px;
    height: 320px;
    right: -100px;
    top: -160px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    box-shadow: 0 0 0 40px rgba(255,255,255,0.02), 0 0 0 80px rgba(255,255,255,0.015);
}
.teacher-kicker, .section-kicker {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.teacher-kicker { color: #f59e0b; }
.section-kicker { color: #b45309; }
.teacher-hero h2 { letter-spacing: -0.03em; }

.teacher-core-selector {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    color: #e2e8f0;
}
.teacher-core-selector select {
    background: transparent;
    border: 0;
    color: #fff;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}
.teacher-core-selector select option {
    background: #1e293b;
    color: #fff;
}

.teacher-primary-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.teacher-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.today-call-card, .teacher-card, .teacher-chart-card {
    border: 1px solid #e7e5e0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 19, 24, 0.045);
    overflow: hidden;
}
.today-call-card {
    background: linear-gradient(135deg, #fffdfa 0%, #ffffff 100%);
    border-color: #eee3cc;
}
.today-call-card .card-body { padding: 1.25rem; }
.today-call-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fffbeb;
    color: #d97706;
    font-size: 1.4rem;
}
.today-call-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    margin-top: 1rem;
}
.today-call-detail {
    padding: 0.75rem;
    border: 1px solid #f1eadc;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
}
.today-call-detail span {
    display: block;
    color: #8a6a2d;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.today-call-detail strong {
    display: block;
    margin-top: 0.2rem;
    color: #1e293b;
    font-size: 0.95rem;
}
.today-call-progress {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #f3ece0;
}
.today-call-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d97706, #f59e0b);
    transition: width 0.4s ease;
}

.teacher-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f1eeea;
}
.teacher-card-header h6 {
    margin: 0;
    color: #1e293b;
    font-weight: 800;
    font-size: 0.96rem;
}
.teacher-card-header small {
    display: block;
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.75rem;
}
.teacher-card-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff1f2;
    color: #be123c;
    font-size: 1rem;
}

.frequency-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1rem;
}
.frequency-stat {
    min-height: 90px;
    padding: 0.85rem;
    border: 1px solid #ede9e3;
    border-radius: 14px;
    background: #faf9f7;
}
.frequency-stat span {
    display: block;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.frequency-stat strong {
    display: block;
    margin-top: 0.25rem;
    color: #1e293b;
    font-size: 1.45rem;
    line-height: 1;
}
.frequency-stat small {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.72rem;
}
.is-positive { color: #059669 !important; }
.is-negative { color: #be123c !important; }

.priority-list, .attention-list, .graduation-list { padding: 0.5rem; }
.priority-item, .attention-item, .graduation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}
.priority-item:hover, .attention-item:hover, .graduation-item:hover {
    background: #faf9f7;
    transform: translateX(2px);
    color: inherit;
}
.priority-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
}
.priority-dot.pending { background: #d97706; box-shadow: 0 0 0 5px #fffbeb; }
.priority-dot.graduation { background: #be123c; box-shadow: 0 0 0 5px #fff1f2; }
.priority-dot.today { background: #2563eb; box-shadow: 0 0 0 5px #eff6ff; }
.priority-dot.admin { background: #64748b; box-shadow: 0 0 0 5px #f1f5f9; }

.priority-copy, .attention-copy, .graduation-copy { min-width: 0; flex: 1; }
.priority-copy strong, .attention-copy strong, .graduation-copy strong {
    display: block;
    color: #1e293b;
    font-size: 0.88rem;
}
.priority-copy small, .attention-copy small, .graduation-copy small {
    display: block;
    margin-top: 0.15rem;
    color: #64748b;
    line-height: 1.35;
    font-size: 0.76rem;
}
.attention-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 800;
}
.attention-reason {
    color: #b45309 !important;
    font-weight: 600;
}
.btn-wa-rescue {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-wa-rescue:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
    transform: scale(1.06);
}

.graduation-progress {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: conic-gradient(#be123c calc(var(--progress) * 1%), #f1f5f9 0);
}
.graduation-progress::before {
    content: attr(data-progress) '%';
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: inherit;
    background: #fff;
    color: #be123c;
    font-size: 0.68rem;
    font-weight: 800;
}

.pending-card {
    border-color: #eee3cc;
    border-top: 3px solid #d97706;
}
.pending-card .teacher-card-header { background: #fffdf8; }
.pending-table { margin: 0; }
.pending-table thead th {
    padding: 0.7rem 1rem;
    color: #8a6a2d;
    background: #fffdf9;
    border-bottom: 1px solid #f1eadc;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pending-table tbody td {
    padding: 0.85rem 1rem;
    border-color: #f2eee7;
    font-size: 0.84rem;
}
.pending-table tbody tr:hover { background: #fffaf1; }
.pending-actions { display: inline-flex; gap: 0.4rem; }
.pending-actions .btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.empty-state {
    padding: 2.25rem 1rem;
    color: #64748b;
    text-align: center;
}
.empty-state i {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 2rem;
    color: #059669;
}

/* Teacher Charts & BJJ Belt Distribution */
.teacher-chart-wrap {
    position: relative;
    min-height: 230px;
    padding: 0.75rem 1rem 1rem;
}
.teacher-trend-svg { width: 100%; height: 100%; min-height: 200px; }

/* BJJ Belt Breakdown Ribbon */
.belt-ribbon {
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    gap: 1px;
}
.belt-ribbon-segment {
    height: 100%;
    position: relative;
    transition: filter 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    min-width: 4px;
}
.belt-ribbon-segment:hover {
    filter: brightness(0.88);
    z-index: 2;
}
.belt-ribbon-stripe {
    position: absolute;
    top: 35%;
    bottom: 35%;
    left: 0;
    right: 0;
    pointer-events: none;
}

/* BJJ Mini Belt Visual Indicator */
.bjj-belt-mini {
    width: 34px;
    height: 13px;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.bjj-belt-mini-sleeve {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 10px;
}
.bjj-belt-mini-stripe {
    position: absolute;
    left: 0;
    right: 10px;
    top: 35%;
    bottom: 35%;
}

/* Belt Rank Grid — Mobile First & Responsive */
.belt-rank-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .belt-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }
}

@media (min-width: 1400px) {
    .belt-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }
}

.belt-rank-card {
    padding: 0.55rem 0.75rem;
    background: #faf9f7;
    border: 1px solid #ede9e3;
    border-radius: 12px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.belt-rank-card:hover {
    background: #ffffff;
    border-color: #dcd7ce;
    box-shadow: 0 4px 12px rgba(17, 19, 24, 0.04);
}
.belt-rank-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.belt-rank-metrics {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.belt-rank-count {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.belt-rank-percent-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    line-height: 1;
    white-space: nowrap;
}
.belt-rank-progress {
    height: 4px;
    border-radius: 999px;
    background: #e8e5de;
    overflow: hidden;
    margin-top: 0.35rem;
}
.belt-rank-bar {
    height: 100%;
    border-radius: inherit;
    transition: width 0.4s ease;
}

/* Mobile Optimizations for Teacher Dashboard */
@media (max-width: 767.98px) {
    .teacher-hero {
        border-radius: 16px;
        padding: 1.25rem 1rem;
    }
    .teacher-primary-action {
        width: 100%;
        min-height: 50px;
        font-size: 1rem;
    }
    .today-call-card .card-body { padding: 1rem; }
    .teacher-card-header {
        padding: 0.85rem 1rem;
        align-items: flex-start;
    }
    .frequency-grid {
        padding: 0.75rem;
        gap: 0.55rem;
    }
    .frequency-stat {
        min-height: 82px;
        padding: 0.7rem;
    }
    .teacher-belt-wrap {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem;
    }
    .teacher-belt-list {
        width: 100%;
        max-height: none;
    }
    .pending-table thead { display: none; }
    .pending-table tbody, .pending-table tbody tr, .pending-table tbody td {
        display: block;
        width: 100%;
    }
    .pending-table tbody tr {
        position: relative;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid #f1eee8;
    }
    .pending-table tbody td {
        padding: 0.15rem 0;
        border: 0;
    }
    .pending-table tbody td:nth-child(2), .pending-table tbody td:nth-child(3) {
        display: inline-block;
        width: 48%;
        margin-top: 0.35rem;
        color: #64748b;
        font-size: 0.76rem;
        vertical-align: top;
    }
    .pending-table tbody td:nth-child(4) {
        position: absolute;
        top: 0.85rem;
        right: 1rem;
        width: auto;
    }
    .pending-table tbody td:nth-child(1) {
        padding-right: 5rem;
    }
}

/* Notification feedback notice and inbox target */
.notification-feedback { position: fixed; bottom: 5.5rem; left: 50%; transform: translateX(-50%); width: min(32rem, calc(100% - 2rem)); z-index: 1090; padding: 1rem; background: #fff; color: #1e293b; border: 1px solid #cbd5e1; border-radius: .75rem; box-shadow: 0 8px 32px #0002; }
.notification-feedback button { min-height: 44px; }
.notifications-page button:not(.notification-actions .btn), .notifications-page summary { min-height: 44px; }
.notification-target { outline: 3px solid #b5122b; outline-offset: 4px; scroll-margin-top: 100px; }

/* Quick Actions Hub - Teacher Dashboard */
.teacher-quick-actions .quick-action-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.15rem;
    background: #fff;
    border: 1px solid #e7e5e0;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(17, 19, 24, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.teacher-quick-actions .quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(17, 19, 24, 0.08);
    border-color: #cbd5e1;
}
.quick-action-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.quick-action-content {
    flex-grow: 1;
    min-width: 0;
}
.quick-action-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.quick-action-desc {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.15rem;
}
.quick-action-arrow {
    color: #cbd5e1;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}
.quick-action-card:hover .quick-action-arrow {
    transform: translateX(2px);
    color: #0f172a;
}

/* Feed de Alunos no Tatame Hoje */
.today-tatame-feed {
    margin-top: 1rem;
}
.tatame-feed-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: thin;
}
.tatame-feed-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    flex-shrink: 0;
}
.tatame-feed-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.tatame-feed-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tatame-feed-name {
    max-width: 90px;
    font-weight: 600;
    color: #1e293b;
}
.tatame-feed-time {
    font-size: 0.68rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
}

/* Birthday List */
.birthday-item {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    transition: background 0.15s ease;
}
.birthday-item:hover {
    background: #f1f5f9;
}
.birthday-date-badge {
    width: auto;
    text-align: center;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.birthday-date-badge strong {
    display: block;
    font-size: 0.78rem;
    color: #1e293b;
    line-height: 1.1;
}
.birthday-date-badge small {
    display: block;
    font-size: 0.62rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.birthday-date-badge.is-today {
    background: #fee2e2;
    border-color: #fca5a5;
}
.birthday-date-badge.is-today strong {
    color: #b91c1c;
}

/* Global Student Search Modal */
.global-search-item {
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.global-search-item:hover,
.global-search-item:focus {
    background-color: #f8fafc;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
}
.global-search-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #64748b;
    color: #ffffff;
    font-size: .88rem;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
.global-search-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Teacher dashboard: balanced actions and compact student details. */
.teacher-quick-actions .quick-action-card { height: 100%; }
:is(.teacher-dashboard, .admin-dashboard) .pending-card .teacher-card-header { flex-wrap: wrap; }
:is(.teacher-dashboard, .admin-dashboard) .pending-header-actions {
    display: flex;
    align-items: stretch;
    gap: .5rem;
}
:is(.teacher-dashboard, .admin-dashboard) .pending-header-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    white-space: nowrap;
}
:is(.teacher-dashboard, .admin-dashboard) .pending-student-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .65rem;
    margin-top: .25rem;
    color: #64748b;
    font-size: .76rem;
    overflow-wrap: anywhere;
}
:is(.teacher-dashboard, .admin-dashboard) .pending-student-meta span:first-child { white-space: nowrap; }
:is(.teacher-dashboard, .admin-dashboard) .birthday-item { gap: .5rem; }
:is(.teacher-dashboard, .admin-dashboard) .birthday-congratulate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: .3rem;
    padding: .3rem .65rem;
    white-space: nowrap;
}
@media (max-width: 767.98px) {
    .teacher-quick-actions .quick-action-card { padding: .75rem .6rem; gap: .5rem; }
    .teacher-quick-actions .quick-action-icon { width: 32px; height: 32px; font-size: 1.05rem; }
    .teacher-quick-actions .quick-action-title { font-size: .8rem; overflow-wrap: anywhere; }
    .teacher-quick-actions .quick-action-desc { font-size: .7rem; }
    .teacher-quick-actions .quick-action-arrow { display: none; }
    :is(.teacher-dashboard, .admin-dashboard) .birthday-congratulate { width: 36px; height: 36px; min-height: 36px; padding: 0; }
    :is(.teacher-dashboard, .admin-dashboard) .birthday-congratulate span { display: none; }
    :is(.teacher-dashboard, .admin-dashboard) .pending-header-actions { width: 100%; }
    :is(.teacher-dashboard, .admin-dashboard) .pending-header-actions .btn { flex: 1; font-size: .75rem; }
    :is(.teacher-dashboard, .admin-dashboard) .pending-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: .5rem;
        padding: .55rem .75rem;
    }
    :is(.teacher-dashboard, .admin-dashboard) .pending-table tbody td:first-child {
        min-width: 0;
        padding: 0;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
    :is(.teacher-dashboard, .admin-dashboard) .pending-table tbody td.pending-action-cell {
        display: block;
        position: static;
        width: auto;
        margin: 0;
        padding: 0;
    }
    :is(.teacher-dashboard, .admin-dashboard) .pending-actions { display: flex; gap: .3rem; }
    :is(.teacher-dashboard, .admin-dashboard) .pending-actions .btn {
        width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
    }
    :is(.teacher-dashboard, .admin-dashboard) .pending-student-meta {
        gap: .1rem .5rem;
        margin-top: .15rem;
        font-size: .7rem;
        line-height: 1.3;
    }
}
@media (max-width: 767.98px) {
    /* Override the global mobile table cell padding. */
    :is(.teacher-dashboard, .admin-dashboard) .pending-table tbody tr > td {
        padding: 0 !important;
    }
}
/* Readable belt distribution, independent of the chart canvas. */
.belt-breakdown-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem; margin-bottom: 1rem; color: #64748b; font-size: .78rem; }
.belt-breakdown-summary strong { color: #17202b; font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; }
.belt-breakdown-summary small { font-size: .7rem; }
.belt-breakdown-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.belt-breakdown-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; }
.belt-breakdown-label { display: flex; align-items: center; gap: .55rem; min-width: 0; color: #334155; font-size: .78rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.belt-breakdown-label .bjj-belt-mini { flex-shrink: 0; }
.belt-breakdown-values { display: flex; align-items: baseline; gap: .65rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.belt-breakdown-values strong { color: #17202b; font-size: .85rem; }
.belt-breakdown-values > span { min-width: 3.2rem; text-align: right; color: #64748b; font-size: .72rem; }
.belt-breakdown-track { grid-column: 1 / -1; height: 7px; background: #f1f3f5; border-radius: 99px; overflow: hidden; }
.belt-breakdown-track > span { display: block; height: 100%; border-radius: inherit; }
@media (max-width: 575.98px) {
    .belt-breakdown { padding: 1rem; }
    .belt-breakdown-label { font-size: .74rem; gap: .4rem; }
    .belt-breakdown-label .bjj-belt-mini { width: 28px; }
    .belt-breakdown-values { gap: .4rem; }
}