/* =====================================================
   RANKING ACADÉMICO - DISEÑO PREMIUM
   Inspirado en EF Business School - Style Guide
   ===================================================== */

/* ----------------------
   CSS Variables
   ---------------------- */
:root {
    /* Primary Gradient Background */
    --bg-gradient-start: #5ac8c8;
    --bg-gradient-mid: #4dc0c0;
    --bg-gradient-end: #3eb8b8;

    /* Surface Colors */
    --surface-dark: #2a7878;
    --surface-medium: #3a9898;
    --surface-light: #5cd0d0;

    /* Text Colors */
    --text-dark: #1a4a4a;
    --text-medium: #2a6868;
    --text-light: #ffffff;
    --text-name: #1a3a3a;

    /* Accent Colors */
    --accent-orange: #ff6b35;
    --accent-orange-hover: #ff8555;
    --accent-gold: #ffd700;
    --accent-silver: #c0c0c0;

    /* Shadows & Effects */
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.25);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', sans-serif;
}

/* ----------------------
   Reset & Base
   ---------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg,
            var(--bg-gradient-start) 0%,
            var(--bg-gradient-mid) 50%,
            var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ----------------------
   Typography
   ---------------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
}

/* ----------------------
   Utility
   ---------------------- */
.hidden {
    display: none !important;
}

/* ----------------------
   Header
   ---------------------- */
.header {
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-medium) 100%);
    padding: var(--space-md) var(--space-xl);
    box-shadow: var(--shadow-soft);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo h1 {
    color: var(--text-light);
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ----------------------
   Buttons
   ---------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-hover) 100%);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-medium);
    padding: var(--space-xs);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ----------------------
   Master Tabs
   ---------------------- */
.master-tabs {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-xl);
    background: var(--surface-medium);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.master-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.tab-btn.active {
    background: var(--accent-orange);
    color: white;
    box-shadow: var(--shadow-soft);
    border-color: transparent;
}

.tab-icon {
    font-size: 1rem;
}

/* ----------------------
   Main Content
   ---------------------- */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl);
}

/* ----------------------
   Podium Section (Top 2)
   ---------------------- */
.podium-section {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.podium-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 16px 28px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease backwards;
    min-width: 320px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.podium-card:hover {
    transform: translateY(-4px);
}

.podium-card.first {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: var(--glow-gold), var(--shadow-strong);
    animation-delay: 0.1s;
}

.podium-card.second {
    background: linear-gradient(135deg, #E8E8E8 0%, #B8B8B8 100%);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.3), var(--shadow-soft);
    animation-delay: 0.2s;
}

.podium-rank {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.podium-avatar img,
.podium-avatar .avatar-placeholder {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-dark);
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.podium-info {
    flex: 1;
}

.podium-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-name);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.podium-score {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    height: 40px;
    padding: 0 16px;
    background: var(--surface-dark);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ----------------------
   Ranking List
   ---------------------- */
.ranking-section {
    background: transparent;
}

.ranking-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--space-sm);
}

@media (max-width: 500px) {
    .ranking-list {
        grid-template-columns: 1fr;
    }
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px 20px;
    background: var(--surface-dark);
    border-radius: var(--radius-xl);
    transition: all 0.2s ease;
    animation: fadeIn 0.4s ease backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ranking-item:hover {
    background: var(--surface-medium);
    transform: translateX(5px);
}

.ranking-position {
    min-width: 35px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.9;
}

.ranking-student {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    min-width: 0;
}

.ranking-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.ranking-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.8rem;
}

.ranking-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-score {
    min-width: 55px;
    padding: 6px 14px;
    background: var(--surface-light);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-align: center;
}

.ranking-trend {
    display: none;
}

/* ----------------------
   Admin Panel
   ---------------------- */
.admin-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 700px;
    height: 100vh;
    background: linear-gradient(180deg, #f5fafa 0%, #e8f4f4 100%);
    border-left: 4px solid var(--surface-medium);
    z-index: 200;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
}

.admin-panel:not(.hidden) {
    transform: translateX(0);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: var(--surface-dark);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-header h2 {
    font-size: 1.25rem;
}

.admin-header .btn-ghost {
    color: white;
    font-size: 1.5rem;
}

.admin-header .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-content {
    padding: var(--space-lg);
}

.admin-section {
    margin-bottom: var(--space-xl);
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.admin-section h3 {
    color: var(--surface-dark);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.admin-hint {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: var(--space-md);
}

.admin-select {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 2px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

.admin-select:focus {
    outline: none;
    border-color: var(--surface-medium);
}

/* Grades Table */
.grades-table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid #e0e0e0;
}

.grades-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.grades-table th,
.grades-table td {
    padding: 10px 12px;
    text-align: center;
    border: 1px solid #e8e8e8;
}

.grades-table th {
    background: var(--surface-medium);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.grades-table th.student-col {
    text-align: left;
    min-width: 180px;
}

.grades-table th.grade-col {
    min-width: 65px;
}

.grades-table th.fault-col {
    min-width: 55px;
    background: #e74c3c;
}

.grades-table th.add-col {
    min-width: 40px;
    background: var(--accent-orange);
    cursor: pointer;
    font-size: 1.2rem;
}

.grades-table th.add-col:hover {
    background: var(--accent-orange-hover);
}

.grades-table td {
    background: white;
}

.grades-table tr:nth-child(even) td {
    background: #fafafa;
}

.grades-table td.student-name {
    text-align: left;
    font-weight: 500;
    color: var(--text-dark);
}

.grades-table td.fault-cell {
    background: #fff5f5 !important;
}

.grades-table input {
    width: 100%;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    background: transparent;
}

.grades-table input:hover {
    background: #f0f8ff;
}

.grades-table input:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: white;
}

.grades-table-actions {
    margin-top: var(--space-md);
}

/* Penalty Config */
.penalty-config {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
}

.penalty-config label {
    font-weight: 500;
    color: var(--text-dark);
}

.input-number {
    width: 80px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    text-align: center;
}

.input-number:focus {
    outline: none;
    border-color: var(--surface-medium);
}

.penalty-formula {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
}

/* Student List Admin */
.student-list-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-sm);
    max-height: 250px;
    overflow-y: auto;
    padding: var(--space-xs);
}

.student-admin-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px;
    background: #f8f8f8;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.student-admin-row:hover {
    border-color: var(--surface-medium);
    background: white;
}

.student-admin-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.student-admin-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-medium);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}

.student-admin-name {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-admin-edit {
    font-size: 1rem;
}

/* Add Student Form */
.add-student-form {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.add-student-form .input-text {
    flex: 1;
}

.add-student-form .btn {
    white-space: nowrap;
}

/* ----------------------
   Modal
   ---------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: modalPop 0.3s ease;
    box-shadow: var(--shadow-strong);
}

.modal-sm {
    max-width: 340px;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: var(--surface-dark);
    color: white;
}

.modal-header h3 {
    font-size: 1.1rem;
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-top: 1px solid #eee;
}

/* Avatar Upload */
.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.avatar-preview {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid var(--accent-orange);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview .avatar-placeholder-lg {
    font-size: 2.5rem;
    font-weight: 700;
    color: #aaa;
}

/* Form Groups */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.input-text {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.input-text:disabled {
    background: #f5f5f5;
    color: #888;
}

/* Faults Control */
.faults-control {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.faults-control button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faults-control button:hover {
    background: var(--accent-orange);
    color: white;
}

.faults-control span {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
    color: var(--text-dark);
}

/* Grades History */
.grades-history {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.grade-badge {
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.grade-badge.good {
    background: #d4edda;
    color: #155724;
}

.grade-badge.average {
    background: #fff3cd;
    color: #856404;
}

.grade-badge.bad {
    background: #f8d7da;
    color: #721c24;
}

/* Export Options */
.export-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.export-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: #f8f8f8;
    border: 2px solid #eee;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-btn:hover {
    background: white;
    border-color: var(--accent-orange);
    transform: translateX(5px);
}

.export-icon {
    font-size: 2rem;
}

.export-label {
    font-weight: 600;
    color: var(--text-dark);
}

/* ----------------------
   Scrollbar
   ---------------------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--surface-medium);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--surface-dark);
}

/* ----------------------
   Responsive
   ---------------------- */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .master-tabs {
        padding: var(--space-sm) var(--space-md);
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .tab-icon {
        display: none;
    }

    .main-content {
        padding: var(--space-md);
    }

    .podium-section {
        gap: var(--space-md);
    }

    .podium-card {
        min-width: 280px;
        padding: 12px 20px;
    }

    .ranking-list {
        grid-template-columns: 1fr;
    }
}

/* ----------------------
   Student Search (View Mode)
   ---------------------- */
.search-container {
    display: flex;
    align-items: center;
}

.search-input {
    width: 250px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    width: 300px;
}

/* ----------------------
   STUDENT VIEW MODE - Hide Admin/Export
   Uses .is-student-view on body (NO DATA CHANGES)
   ---------------------- */
body.is-student-view #header-actions {
    display: none !important;
}

body.is-student-view #btn-admin,
body.is-student-view #btn-export,
body.is-student-view .admin-panel,
body.is-student-view .edit-overlay {
    display: none !important;
}

/* ----------------------
   Search Highlight Animation (.highlight-search)
   Applied via DOM manipulation, NOT data changes
   ---------------------- */
@keyframes searchHighlightPulse {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes searchGlowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
    }
}

/* Highlight for Ranking Items */
.ranking-item.highlight-search {
    background: linear-gradient(90deg,
            var(--surface-dark) 0%,
            rgba(255, 215, 0, 0.35) 25%,
            rgba(255, 165, 0, 0.45) 50%,
            rgba(255, 215, 0, 0.35) 75%,
            var(--surface-dark) 100%) !important;
    background-size: 200% 100%;
    animation: searchHighlightPulse 2s ease-in-out infinite, searchGlowPulse 1.5s ease-in-out infinite;
    border: 2px solid var(--accent-gold) !important;
    transform: scale(1.03);
    z-index: 10;
    position: relative;
}

.ranking-item.highlight-search .ranking-name {
    color: var(--accent-gold) !important;
    font-weight: 700;
}

/* Highlight for Podium Cards */
.podium-card.highlight-search {
    animation: searchGlowPulse 1.5s ease-in-out infinite;
    border: 3px solid white !important;
    transform: scale(1.06);
}

/* ----------------------
   Student View Mode - Compact Styles
   ---------------------- */
body.is-student-view .header {
    padding: var(--space-sm) var(--space-lg);
}

body.is-student-view .logo h1 {
    font-size: 1.3rem;
}

body.is-student-view .logo-icon {
    font-size: 2rem;
}

body.is-student-view .master-tabs {
    padding: var(--space-sm) var(--space-lg);
}

body.is-student-view .tab-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
}

body.is-student-view .main-content {
    padding: var(--space-md);
}

body.is-student-view .podium-section {
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
}

body.is-student-view .podium-card {
    min-width: 280px;
    padding: 12px 20px;
}

body.is-student-view .podium-avatar img,
body.is-student-view .podium-avatar .avatar-placeholder {
    width: 45px;
    height: 45px;
}

body.is-student-view .podium-name {
    font-size: 0.9rem;
}

body.is-student-view .podium-score {
    min-width: 55px;
    height: 35px;
    font-size: 1rem;
}

body.is-student-view .ranking-item {
    padding: 10px 16px;
}

body.is-student-view .ranking-avatar {
    width: 36px;
    height: 36px;
}

body.is-student-view .ranking-name {
    font-size: 0.85rem;
}

body.is-student-view .ranking-score {
    padding: 5px 12px;
    font-size: 0.9rem;
}

/* View mode responsive */
@media (max-width: 768px) {
    .search-input {
        width: 180px;
    }

    .search-input:focus {
        width: 220px;
    }

    body.is-student-view .logo h1 {
        font-size: 1.1rem;
    }

    body.is-student-view .podium-card {
        min-width: 260px;
    }
}