/* ========================================
   Design System & CSS Variables
   ======================================== */
:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4facfe;
    --warning-color: #fa709a;
    --danger-color: #f5576c;

    /* Neutral Colors */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #252541;
    --bg-card: #1e1e3f;
    --bg-hover: #2a2a4a;

    --text-primary: #ffffff;
    --text-secondary: #b4b4d4;
    --text-muted: #7676a0;
    --text-inverse: #0f0f23;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Global Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   App Container
   ======================================== */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Header
   ======================================== */
.app-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo svg {
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.logo-text h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.logo-text p {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: 2px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    font-family: var(--font-family);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

/* ========================================
   Main Content Layout
   ======================================== */
.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    flex: 1;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.sidebar-header h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.search-box {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.search-box svg {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 2.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
    font-family: var(--font-family);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* Class Select & Inputs */
.class-select {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
    font-family: var(--font-family);
}

.class-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--radius-md);
}

.filter-tab {
    flex: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-family);
}

.filter-tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-sm);
}

.filter-tab:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Student List */
.student-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.student-item {
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.student-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.student-item.active {`r`n    background: #e3f2fd;`r`n    border-color: #90caf9;`r`n    box-shadow: 0 4px 12px rgba(144, 202, 249, 0.3);`r`n}

.student-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.student-item-name {
    font-weight: 600;
    font-size: var(--font-size-base);
}

.student-item-rank {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--accent-color);
}

.student-item.active .student-item-rank {`r`n    color: #1976d2;`r`n}

.student-item-id {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.student-item.active .student-item-id {`r`n    color: #1565c0;`r`n}

.student-item-score {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.student-item.active .student-item-score {`r`n    color: #0d47a1;`r`n}

/* ========================================
   Main Panel
   ======================================== */
.main-panel {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Student Info Card */
.student-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-xl);
    align-items: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.student-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.student-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-glow);
    animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.student-details h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xs);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.student-meta {
    display: flex;
    gap: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.student-stats {
    display: flex;
    gap: var(--spacing-2xl);
}

.stat-item {
    text-align: right;
}

.stat-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

.stat-value {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subject Selection Card */
.subject-selection-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.card-header h3 {
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.card-header h3 svg {
    color: var(--primary-color);
}

.subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 400;
    margin-left: var(--spacing-sm);
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--spacing-sm);
}

.subject-checkbox {
    position: relative;
}

.subject-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.subject-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-xs);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.subject-checkbox input:checked+.subject-label {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.subject-name {
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

.subject-checkbox input:checked+.subject-label .subject-name {
    color: white;
}

.subject-score {
    font-size: 10px;
    color: var(--text-muted);
}

.subject-checkbox input:checked+.subject-label .subject-score {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Charts
   ======================================== */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.chart-header h3 {
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.chart-header svg {
    color: var(--primary-color);
}

.chart-legend {
    display: flex;
    gap: var(--spacing-lg);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

canvas {
    max-height: 300px;
}

/* ========================================
   Table
   ======================================== */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.table-container {
    overflow-x: auto;
    margin-top: var(--spacing-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead tr {
    background: var(--bg-tertiary);
}

th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

tbody tr:hover {
    background: var(--bg-tertiary);
}

td {
    padding: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.exam-name {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.exam-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-gradient);
}

.table-note {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================
   Modal
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn var(--transition-base);
}

.modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp var(--transition-slow);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: var(--font-size-xl);
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-3xl);
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: all var(--transition-base);
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--spacing-xl);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: var(--spacing-xl);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
}

.upload-area svg {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.upload-area h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
}

.upload-area p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.upload-instructions h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-md);
}

.upload-instructions ul {
    list-style: none;
    padding: 0;
}

.upload-instructions li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

tbody tr:hover {
    background: var(--bg-tertiary);
}

td {
    padding: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.exam-name {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.exam-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-gradient);
}

.table-note {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================
   Modal
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn var(--transition-base);
}

.modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp var(--transition-slow);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: var(--font-size-xl);
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-3xl);
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: all var(--transition-base);
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--spacing-xl);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: var(--spacing-xl);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
}

.upload-area svg {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.upload-area h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
}

.upload-area p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.upload-instructions h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-md);
}

.upload-instructions ul {
    list-style: none;
    padding: 0;
}

.upload-instructions li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.upload-instructions li::before {
    content: 'â€?;
 position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 250px 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: var(--spacing-md);
        gap: var(--spacing-lg);
    }

    .sidebar {
        position: static;
        max-height: none;
        margin-bottom: var(--spacing-lg);
    }

    /* Limit student list height on mobile */
    .student-list {
        max-height: 300px;
        overflow-y: auto;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
    }

    .student-info-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--spacing-lg);
        gap: var(--spacing-lg);
    }

    .student-avatar {
        margin: 0 auto;
    }

    .student-meta {
        justify-content: center;
    }

    .student-stats {
        justify-content: center;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 640px) {
    :root {
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }

    .app-header {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .header-left,
    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .logo-text h1 {
        font-size: var(--font-size-lg);
    }

    .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-xs);
    }

    .subject-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: var(--spacing-sm);
    }

    .subject-label {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .student-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .stat-value {
        font-size: var(--font-size-2xl);
    }

    .modal-content {
        width: 95%;
        margin: var(--spacing-md);
        max-height: 90vh;
    }

    .modal-header,
    .modal-body {
        padding: var(--spacing-lg);
    }

    canvas {
        max-height: 250px;
    }

    .large-table-container {
        border-radius: 0;
    }
}

/* ========================================
   Grade Filter Styles
   ======================================== */
.grade-filter-container {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.filter-title {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #b4b4d4;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.grade-filter-option {
    display: block;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-secondary);
}

.grade-filter-option:hover {
    background: var(--bg-hover);
}

.grade-filter-option input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.grade-filter-option input[type="radio"]:checked+span {
    color: var(--primary-color);
    font-weight: 600;
}

.grade-filter-option span {
    font-size: var(--font-size-sm);
}

/* Class Filter */
.class-filter-box {
    margin-top: 12px;
    position: relative;
}

.class-select {
    width: 100%;
    padding: 10px 12px;
    padding-right: 30px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;

    cursor: pointer;
    transition: all 0.3s ease;
}

.class-select::placeholder {
    color: var(--text-muted);
}

.class-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.class-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Large Modal */
.modal-large {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.large-table-container {
    flex: 1;
    overflow: auto;
    border-radius: 0 0 16px 16px;
}

#bigRankTable th,
#bigRankTable td {
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}

#bigRankTable th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}

#bigRankTable tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

#bigRankTable tbody tr:hover {
    background: var(--bg-hover);
}

[data-theme="light"] {
    /* Neutral Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f2f5;
    --bg-card: #ffffff;
    --bg-hover: #f5f5f7;

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8a8a9a;
    --text-inverse: #ffffff;

    --border-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
    .sidebar {
        max-height: calc(100vh - 200px) !important;
        height: auto !important;
        overflow-y: auto !important;
    }
}

@ k e y f r a m e s   s p i n    {
       f r o m    {
           t r a n s f o r m :    r o t a t e ( 0 d e g ) ;
           
    }

       t o    {
           t r a n s f o r m :    r o t a t e ( 3 6 0 d e g ) ;
           
    }

       
}

     / *   M o b i l e   R a n k   T a b l e   S t y l e s   * /   . e x p a n d - c e l l    {
       t e x t - a l i g n :    c e n t e r ;
       p a d d i n g :    8 p x    ! i m p o r t a n t ;
       
}

   . e x p a n d - b t n    {
       b a c k g r o u n d :    t r a n s p a r e n t ;
       b o r d e r :    n o n e ;
       c u r s o r :    p o i n t e r ;
       p a d d i n g :    4 p x ;
       d i s p l a y :    f l e x ;
       a l i g n - i t e m s :    c e n t e r ;
       j u s t i f y - c o n t e n t :    c e n t e r ;
       c o l o r :    v a r ( - - p r i m a r y - c o l o r ) ;
       t r a n s i t i o n :    a l l   0 . 3 s   e a s e ;
       
}

   . e x p a n d - b t n : h o v e r    {
       b a c k g r o u n d :    v a r ( - - b g - t e r t i a r y ) ;
       b o r d e r - r a d i u s :    4 p x ;
       
}

   . e x p a n d - i c o n    {
       t r a n s i t i o n :    t r a n s f o r m   0 . 3 s   e a s e ;
       
}

   . r a n k - d e t a i l - r o w    {
       b a c k g r o u n d :    v a r ( - - b g - t e r t i a r y ) ;
       
}

   . d e t a i l - c e l l    {
       p a d d i n g :    1 6 p x    ! i m p o r t a n t ;
       
}

   . s u b j e c t - d e t a i l s    {
       d i s p l a y :    g r i d ;
       g r i d - t e m p l a t e - c o l u m n s :    r e p e a t ( a u t o - f i l l ,    m i n m a x ( 1 2 0 p x ,    1 f r ) ) ;
       g a p :    1 2 p x ;
       
}

   . s u b j e c t - d e t a i l - i t e m    {
       d i s p l a y :    f l e x ;
       j u s t i f y - c o n t e n t :    s p a c e - b e t w e e n ;
       a l i g n - i t e m s :    c e n t e r ;
       p a d d i n g :    8 p x   1 2 p x ;
       b a c k g r o u n d :    v a r ( - - b g - c a r d ) ;
       b o r d e r - r a d i u s :    8 p x ;
       b o r d e r :    1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;
       
}

   . s u b j e c t - n a m e    {
       f o n t - s i z e :    1 4 p x ;
       c o l o r :    v a r ( - - t e x t - s e c o n d a r y ) ;
       f o n t - w e i g h t :    5 0 0 ;
       
}

   . s u b j e c t - s c o r e    {
       f o n t - s i z e :    1 6 p x ;
       c o l o r :    v a r ( - - p r i m a r y - c o l o r ) ;
       f o n t - w e i g h t :    6 0 0 ;
       
}

   @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )    {
       . s u b j e c t - d e t a i l s    {
           g r i d - t e m p l a t e - c o l u m n s :    r e p e a t ( 2 ,    1 f r ) ;
           
    }

       
}

     / *   R a n k   M e d a l s   * /   . r a n k - m e d a l    {
       d i s p l a y :    i n l i n e - b l o c k ;
       w i d t h :    2 4 p x ;
       h e i g h t :    2 4 p x ;
       l i n e - h e i g h t :    2 4 p x ;
       t e x t - a l i g n :    c e n t e r ;
       b o r d e r - r a d i u s :    5 0 % ;
       c o l o r :    w h i t e ;
       f o n t - w e i g h t :    b o l d ;
       f o n t - s i z e :    1 2 p x ;
       
}

   . r a n k - 1    {
       b a c k g r o u n d :    l i n e a r - g r a d i e n t ( 1 3 5 d e g ,    # F F D 7 0 0 ,    # F D B 9 3 1 ) ;
       b o x - s h a d o w :    0   2 p x   4 p x   r g b a ( 2 5 5 ,    2 1 5 ,    0 ,    0 . 3 ) ;
       
}

   . r a n k - 2    {
       b a c k g r o u n d :    l i n e a r - g r a d i e n t ( 1 3 5 d e g ,    # E 0 E 0 E 0 ,    # B D B D B D ) ;
       b o x - s h a d o w :    0   2 p x   4 p x   r g b a ( 1 8 9 ,    1 8 9 ,    1 8 9 ,    0 . 3 ) ;
       
}

   . r a n k - 3    {
       b a c k g r o u n d :    l i n e a r - g r a d i e n t ( 1 3 5 d e g ,    # C D 7 F 3 2 ,    # A 0 5 2 2 D ) ;
       b o x - s h a d o w :    0   2 p x   4 p x   r g b a ( 2 0 5 ,    1 2 7 ,    5 0 ,    0 . 3 ) ;
       
}

   / *   M o b i l e   T a b l e   O p t i m i z a t i o n s   * /   @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )    {
       . r a n k - t a b l e - r o w    {
           c u r s o r :    p o i n t e r ;
           - w e b k i t - t a p - h i g h l i g h t - c o l o r :    t r a n s p a r e n t ;
           
    }

       . r a n k - t a b l e - r o w : a c t i v e    {
           b a c k g r o u n d - c o l o r :    v a r ( - - b g - t e r t i a r y ) ;
           
    }

       . s t u d e n t - n a m e - c e l l    {
           f o n t - w e i g h t :    6 0 0 ;
           
    }

       . r a n k - d e t a i l - r o w   t d    {
           p a d d i n g :    0    ! i m p o r t a n t ;
           b o r d e r :    n o n e    ! i m p o r t a n t ;
           
    }

       . s u b j e c t - d e t a i l s    {
           p a d d i n g :    1 2 p x ;
           b a c k g r o u n d :    v a r ( - - b g - t e r t i a r y ) ;
           b o r d e r - r a d i u s :    0   0   8 p x   8 p x ;
           m a r g i n - b o t t o m :    8 p x ;
           b o x - s h a d o w :    i n s e t   0   2 p x   4 p x   r g b a ( 0 ,  0 ,  0 ,  0 . 0 5 ) ;
           
    }

       
}

     / *   R a n k   M o d a l   H e a d e r   C o n t r o l s   * /   # r a n k H e a d e r C o n t r o l s    {
       d i s p l a y :    f l e x ;
       a l i g n - i t e m s :    c e n t e r ;
       g a p :    1 2 p x ;
       f l e x - w r a p :    w r a p ;
       
}

   / *   D e f a u l t   w i d t h s   f o r   d e s k t o p   * /   # r a n k V i e w T y p e    {
       w i d t h :    1 4 0 p x ;
       
}

   # r a n k E x a m S e l e c t    {
       w i d t h :    2 0 0 p x ;
       
}

   # r a n k F i l t e r N a m e    {
       w i d t h :    1 2 0 p x ;
       
}

   # r a n k F i l t e r C l a s s    {
       w i d t h :    1 2 0 p x ;
       
}

   # r a n k F i l t e r T y p e    {
       w i d t h :    1 0 0 p x ;
       
}

   / *   M o b i l e   R e s p o n s i v e   S t y l e s   * /   @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )    {
       # r a n k H e a d e r C o n t r o l s    {
           f l e x - d i r e c t i o n :    c o l u m n ;
           a l i g n - i t e m s :    s t r e t c h ;
           g a p :    1 0 p x ;
           p a d d i n g - b o t t o m :    1 0 p x ;
           
    }

       # r a n k H e a d e r C o n t r o l s   . c l a s s - s e l e c t ,
       # r a n k H e a d e r C o n t r o l s   i n p u t ,
       # r a n k H e a d e r C o n t r o l s   s e l e c t    {
           w i d t h :    1 0 0 %    ! i m p o r t a n t ;
           m a r g i n :    0    ! i m p o r t a n t ;
           
    }

       # r a n k A I A n a l y s i s B t n    {
           w i d t h :    1 0 0 % ;
           j u s t i f y - c o n t e n t :    c e n t e r ;
           m a r g i n - l e f t :    0    ! i m p o r t a n t ;
           d i s p l a y :    f l e x    ! i m p o r t a n t ;

           / *   E n s u r e   i t ' s   v i s i b l e   i f   c o n f i g u r e d   * /   }   } 
    / *   R a n k   H e a d e r   R e s p o n s i v e   S t y l e s   * /   . r a n k - h e a d e r - c o n t r o l s    {
               d i s p l a y :    f l e x ;
               a l i g n - i t e m s :    c e n t e r ;
               g a p :    2 0 p x ;
               f l e x - w r a p :    w r a p ;
               
        }

           @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )    {
               . r a n k - h e a d e r - c o n t r o l s    {
                   f l e x - d i r e c t i o n :    c o l u m n ;
                   a l i g n - i t e m s :    s t r e t c h ;
                   g a p :    1 2 p x ;
                   p a d d i n g - b o t t o m :    1 0 p x ;
                   
            }

               . r a n k - h e a d e r - c o n t r o l s   h 2    {
                   t e x t - a l i g n :    c e n t e r ;
                   w i d t h :    1 0 0 % ;
                   m a r g i n - b o t t o m :    5 p x ;
                   
            }

               . r a n k - h e a d e r - c o n t r o l s   s e l e c t ,
               . r a n k - h e a d e r - c o n t r o l s   i n p u t    {
                   w i d t h :    1 0 0 %    ! i m p o r t a n t ;
                   m a x - w i d t h :    n o n e    ! i m p o r t a n t ;
                   m a r g i n :    0    ! i m p o r t a n t ;
                   
            }

               . r a n k - h e a d e r - c o n t r o l s   b u t t o n # r a n k A I A n a l y s i s B t n    {
                   w i d t h :    1 0 0 %    ! i m p o r t a n t ;
                   m a r g i n :    0    ! i m p o r t a n t ;
                   m a r g i n - t o p :    5 p x    ! i m p o r t a n t ;
                   j u s t i f y - c o n t e n t :    c e n t e r ;
                   
            }

               
        }

             / *   M o b i l e   T a b l e   C o m p a c t   S t y l e s   * /   @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )    {

               # b i g R a n k T a b l e   t h ,
               # b i g R a n k T a b l e   t d    {
                   p a d d i n g :    1 0 p x   4 p x    ! i m p o r t a n t ;
                   f o n t - s i z e :    1 3 p x ;
                   
            }

               # b i g R a n k T a b l e   t h : n t h - c h i l d ( 4 ) ,
               # b i g R a n k T a b l e   t d : n t h - c h i l d ( 4 ) ,
               # b i g R a n k T a b l e   t h : n t h - c h i l d ( 5 ) ,
               # b i g R a n k T a b l e   t d : n t h - c h i l d ( 5 )    {
                   t e x t - a l i g n :    c e n t e r ;
                   p a d d i n g - l e f t :    2 p x    ! i m p o r t a n t ;
                   p a d d i n g - r i g h t :    2 p x    ! i m p o r t a n t ;
                   
            }

               
        }

             / *   M o b i l e   D e t a i l   A l i g n m e n t   * /   @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )    {
               . s u b j e c t - d e t a i l s    {
                   d i s p l a y :    f l e x    ! i m p o r t a n t ;
                   f l e x - w r a p :    w r a p ;
                   j u s t i f y - c o n t e n t :    f l e x - e n d    ! i m p o r t a n t ;
                   g a p :    8 p x    ! i m p o r t a n t ;
                   
            }

               . s u b j e c t - d e t a i l - i t e m    {
                   w i d t h :    a u t o    ! i m p o r t a n t ;
                   m i n - w i d t h :    9 0 p x ;
                   
            }

               
        }

             / *   F o r c e   M o b i l e   D e t a i l   R i g h t   A l i g n m e n t   * /   @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )    {
               . r a n k - d e t a i l - r o w   t d . d e t a i l - c e l l    {
                   d i s p l a y :    b l o c k    ! i m p o r t a n t ;
                   w i d t h :    1 0 0 %    ! i m p o r t a n t ;
                   p a d d i n g :    0    ! i m p o r t a n t ;
                   
            }

               . s u b j e c t - d e t a i l s    {
                   d i s p l a y :    f l e x    ! i m p o r t a n t ;
                   f l e x - w r a p :    w r a p    ! i m p o r t a n t ;
                   j u s t i f y - c o n t e n t :    f l e x - e n d    ! i m p o r t a n t ;
                   a l i g n - i t e m s :    c e n t e r    ! i m p o r t a n t ;
                   g a p :    8 p x    ! i m p o r t a n t ;
                   w i d t h :    1 0 0 %    ! i m p o r t a n t ;
                   p a d d i n g :    1 2 p x    ! i m p o r t a n t ;
                   b o x - s i z i n g :    b o r d e r - b o x    ! i m p o r t a n t ;
                   
            }

               . s u b j e c t - d e t a i l - i t e m    {
                   d i s p l a y :    f l e x    ! i m p o r t a n t ;
                   f l e x - d i r e c t i o n :    r o w    ! i m p o r t a n t ;
                   a l i g n - i t e m s :    c e n t e r    ! i m p o r t a n t ;
                   j u s t i f y - c o n t e n t :    s p a c e - b e t w e e n    ! i m p o r t a n t ;
                   b a c k g r o u n d :    v a r ( - - b g - s e c o n d a r y )    ! i m p o r t a n t ;
                   b o r d e r :    1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r )    ! i m p o r t a n t ;
                   p a d d i n g :    6 p x   1 0 p x    ! i m p o r t a n t ;
                   b o r d e r - r a d i u s :    6 p x    ! i m p o r t a n t ;
                   m i n - w i d t h :    9 0 p x    ! i m p o r t a n t ;
                   w i d t h :    a u t o    ! i m p o r t a n t ;
                   f l e x :    0   0   a u t o    ! i m p o r t a n t ;
                   m a r g i n :    0    ! i m p o r t a n t ;
                   
            }

               . s u b j e c t - n a m e    {
                   m a r g i n - r i g h t :    6 p x    ! i m p o r t a n t ;
                   m a r g i n - b o t t o m :    0    ! i m p o r t a n t ;
                   
            }

               
        }

             / *   M o b i l e   D e t a i l   G r i d   L a y o u t   O p t i m i z a t i o n   * /   @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )    {
               . r a n k - d e t a i l - r o w   t d    {
                   p a d d i n g :    1 0 p x    ! i m p o r t a n t ;
                   
            }

               . s u b j e c t - d e t a i l s    {
                   d i s p l a y :    g r i d    ! i m p o r t a n t ;
                   g r i d - t e m p l a t e - c o l u m n s :    r e p e a t ( a u t o - f i t ,    m i n m a x ( 7 0 p x ,    1 f r ) )    ! i m p o r t a n t ;
                   g a p :    8 p x    ! i m p o r t a n t ;
                   j u s t i f y - c o n t e n t :    c e n t e r    ! i m p o r t a n t ;
                   w i d t h :    1 0 0 % ;
                   p a d d i n g :    1 0 p x ;
                   b a c k g r o u n d :    v a r ( - - b g - t e r t i a r y ) ;
                   b o r d e r - r a d i u s :    8 p x ;
                   m a r g i n :    0   a u t o ;
                   
            }

               . s u b j e c t - d e t a i l - i t e m    {
                   d i s p l a y :    f l e x    ! i m p o r t a n t ;
                   f l e x - d i r e c t i o n :    c o l u m n    ! i m p o r t a n t ;
                   a l i g n - i t e m s :    c e n t e r    ! i m p o r t a n t ;
                   j u s t i f y - c o n t e n t :    c e n t e r    ! i m p o r t a n t ;
                   p a d d i n g :    6 p x   4 p x    ! i m p o r t a n t ;
                   b a c k g r o u n d :    v a r ( - - b g - c a r d ) ;
                   b o r d e r :    1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;
                   b o r d e r - r a d i u s :    6 p x ;
                   w i d t h :    a u t o    ! i m p o r t a n t ;
                   m i n - w i d t h :    0    ! i m p o r t a n t ;
                   
            }

               . s u b j e c t - n a m e    {
                   f o n t - s i z e :    1 2 p x    ! i m p o r t a n t ;
                   c o l o r :    v a r ( - - t e x t - m u t e d )    ! i m p o r t a n t ;
                   m a r g i n - b o t t o m :    2 p x    ! i m p o r t a n t ;
                   m a r g i n - r i g h t :    0    ! i m p o r t a n t ;
                   
            }

               . s u b j e c t - s c o r e    {
                   f o n t - s i z e :    1 4 p x    ! i m p o r t a n t ;
                   f o n t - w e i g h t :    b o l d    ! i m p o r t a n t ;
                   c o l o r :    v a r ( - - t e x t - p r i m a r y )    ! i m p o r t a n t ;
                   
            }

               
        }

             / *   M o b i l e   R a n k   H e a d e r   O p t i m i z a t i o n   * /   @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {   . m o d a l - c o n t e n t . m o d a l - l a r g e   . m o d a l - h e a d e r   {   p a d d i n g :   1 2 p x   1 6 p x ;   d i s p l a y :   b l o c k ;   p o s i t i o n :   r e l a t i v e ;   }   . r a n k - h e a d e r - c o n t r o l s   {   d i s p l a y :   g r i d   ! i m p o r t a n t ;   g r i d - t e m p l a t e - c o l u m n s :   1 f r   1 f r ;   g a p :   1 0 p x ;   w i d t h :   1 0 0 % ;   m a r g i n - t o p :   0 ;   }   . r a n k - h e a d e r - c o n t r o l s   h 2   {   g r i d - c o l u m n :   1   /   - 1 ;   f o n t - s i z e :   1 8 p x ;   m a r g i n - b o t t o m :   5 p x ;   t e x t - a l i g n :   l e f t ;   }   . m o d a l - h e a d e r   . m o d a l - c l o s e   {   p o s i t i o n :   a b s o l u t e ;   t o p :   8 p x ;   r i g h t :   1 2 p x ;   w i d t h :   3 2 p x ;   h e i g h t :   3 2 p x ;   d i s p l a y :   f l e x ;   a l i g n - i t e m s :   c e n t e r ;   j u s t i f y - c o n t e n t :   c e n t e r ;   b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ;   b o r d e r - r a d i u s :   5 0 % ;   z - i n d e x :   1 0 ;   f o n t - s i z e :   2 0 p x ;   }   . r a n k - h e a d e r - c o n t r o l s   s e l e c t ,   . r a n k - h e a d e r - c o n t r o l s   i n p u t   {   w i d t h :   1 0 0 %   ! i m p o r t a n t ;   m a r g i n :   0   ! i m p o r t a n t ;   h e i g h t :   3 6 p x ;   f o n t - s i z e :   1 3 p x ;   }   # r a n k V i e w T y p e   {   g r i d - c o l u m n :   1   /   2 ;   }   # r a n k E x a m S e l e c t   {   g r i d - c o l u m n :   2   /   3 ;   }   # r a n k F i l t e r N a m e   {   g r i d - c o l u m n :   1   /   2 ;   }   # r a n k F i l t e r C l a s s   {   g r i d - c o l u m n :   2   /   3 ;   }   # r a n k F i l t e r T y p e   {   g r i d - c o l u m n :   1   /   2 ;   }   # r a n k A I A n a l y s i s B t n   {   g r i d - c o l u m n :   2   /   3 ;   w i d t h :   1 0 0 %   ! i m p o r t a n t ;   m a r g i n :   0   ! i m p o r t a n t ;   h e i g h t :   3 6 p x ;   j u s t i f y - c o n t e n t :   c e n t e r ;   }   }  
 / *   M o b i l e   R a n k   T a b l e   R e f i n e m e n t   * /   @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {   / *   ?V?[h?4Y  * /   . l a r g e - t a b l e - c o n t a i n e r   {   m a x - h e i g h t :   c a l c ( 8 0 v h   -   1 8 0 p x )   ! i m p o r t a n t ;   / *   ?te??^?N??^[{	?h  * /   }   # b i g R a n k T a b l e   t h e a d   t h   {   p o s i t i o n :   s t i c k y ;   t o p :   0 ;   z - i n d e x :   1 0 ;   b a c k g r o u n d :   v a r ( - - b g - c a r d ) ;   b o x - s h a d o w :   0   1 p x   0   v a r ( - - b o r d e r - c o l o r ) ;   }   / *   h?<hUSCQ<hOS  * /   # b i g R a n k T a b l e   t h ,   # b i g R a n k T a b l e   t d   {   p a d d i n g :   1 2 p x   4 p x ;   f o n t - s i z e :   1 4 p x ;   }   / *   ?YTR  * /   . s t u d e n t - n a m e - c e l l   {   f o n t - w e i g h t :   6 0 0 ;   f o n t - s i z e :   1 5 p x ;   }   / *   ;`RR  ( ,{4 R)   * /   # b i g R a n k T a b l e   t d : n t h - c h i l d ( 4 )   {   c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ;   f o n t - w e i g h t :   7 0 0 ;   f o n t - s i z e :   1 5 p x ;   }   / *   ?cTR  ( ,{1 R)   * /   # b i g R a n k T a b l e   t d : f i r s t - c h i l d   {   f o n t - f a m i l y :   m o n o s p a c e ;   f o n t - w e i g h t :   b o l d ;   c o l o r :   v a r ( - - t e x t - s e c o n d a r y ) ;   }   / *   U\ _??`?S  * /   . r a n k - d e t a i l - r o w   t d   {   p a d d i n g :   0   ! i m p o r t a n t ;   b o r d e r :   n o n e   ! i m p o r t a n t ;   b a c k g r o u n d :   v a r ( - - b g - t e r t i a r y ) ;   }   . s u b j e c t - d e t a i l s   {   d i s p l a y :   g r i d ;   g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( 3 ,   1 f r ) ;   g a p :   8 p x ;   p a d d i n g :   1 2 p x   1 6 p x ;   m a r g i n :   0 ;   }   . s u b j e c t - d e t a i l - i t e m   {   d i s p l a y :   f l e x ;   f l e x - d i r e c t i o n :   c o l u m n ;   a l i g n - i t e m s :   c e n t e r ;   j u s t i f y - c o n t e n t :   c e n t e r ;   b a c k g r o u n d :   v a r ( - - b g - c a r d ) ;   p a d d i n g :   8 p x ;   b o r d e r - r a d i u s :   8 p x ;   b o x - s h a d o w :   0   2 p x   4 p x   r g b a ( 0 , 0 , 0 , 0 . 0 2 ) ;   b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;   }   . s u b j e c t - n a m e   {   f o n t - s i z e :   1 2 p x ;   c o l o r :   v a r ( - - t e x t - m u t e d ) ;   m a r g i n - b o t t o m :   4 p x ;   }   . s u b j e c t - s c o r e   {   f o n t - s i z e :   1 6 p x ;   f o n t - w e i g h t :   6 0 0 ;   c o l o r :   v a r ( - - t e x t - p r i m a r y ) ;   f o n t - f a m i l y :   v a r ( - - f o n t - m o n o ) ;   }   / *   vPpeL??of?_?  * /   # b i g R a n k T a b l e   t b o d y   t r : n t h - c h i l d ( 4 n - 3 )   {   b a c k g r o u n d :   t r a n s p a r e n t ;   }   / *   ??`L??of  * /   . r a n k - d e t a i l - r o w   {   b a c k g r o u n d :   v a r ( - - b g - t e r t i a r y )   ! i m p o r t a n t ;   }   }  
 