* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #ffffff;
}

.container {
    display: block;
    min-height: 100vh;
    width: 100%;
}

.left-section {
    display: none;
}

.image-overlay {
    display: none;
}

.right-section {
    flex: none;
    background: #ffffff;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: 32px 36px 40px;
    overflow: visible;
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: none;
}

.dashboard-section {
    width: 100%;
    margin-bottom: 30px;
}

.dashboard-intro {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.dashboard-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.summary-card {
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: none;
    border: 2px solid #e5e7eb;
    background: #ffffff;
}

.summary-card .summary-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.summary-card .summary-label {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.summary-primary {
    border-color: #0f172a;
    background: #ffffff;
}

.summary-primary .summary-value,
.summary-primary .summary-label,
.summary-secondary .summary-value,
.summary-secondary .summary-label,
.summary-success .summary-value,
.summary-success .summary-label,
.summary-warning .summary-value,
.summary-warning .summary-label,
.summary-neutral .summary-value,
.summary-neutral .summary-label {
    color: #0f172a;
}

.summary-secondary {
    border-color: #0f766e;
    background: #ffffff;
}

.summary-success {
    border-color: #166534;
    background: #ffffff;
}

.summary-warning {
    border-color: #b45309;
    background: #ffffff;
}

.summary-neutral {
    border-color: #334155;
    background: #ffffff;
}

.student-card-dashboard {
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.student-card-dashboard:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #14b8a6;
}

.student-card-dashboard.cgpa-excellent {
    border-left: 6px solid #10b981;
}

.student-card-dashboard.cgpa-good {
    border-left: 6px solid #14b8a6;
}

.student-card-dashboard.cgpa-average {
    border-left: 6px solid #f59e0b;
}

.student-card-dashboard.cgpa-low {
    border-left: 6px solid #ef4444;
}

.card-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e5e7eb;
}

.card-student-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    flex: 1;
}

.cgpa-badge {
    background: #14b8a6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 8px;
}

.student-card-dashboard.cgpa-excellent .cgpa-badge {
    background: #10b981;
}

.student-card-dashboard.cgpa-average .cgpa-badge {
    background: #f59e0b;
}

.student-card-dashboard.cgpa-low .cgpa-badge {
    background: #ef4444;
}

.chart-card,
.leaderboard-card {
    margin-bottom: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 10px;
}

.chart-kicker {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.chart-summary {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.chart-axis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 0 2px 8px;
    font-size: 11px;
    color: #94a3b8;
}

.chart-axis span {
    position: relative;
    padding-top: 8px;
}

.chart-axis span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 5px;
    background: #cbd5e1;
}

.line-chart-shell {
    display: grid;
    gap: 12px;
}

.chart-plot {
    min-height: 320px;
}

.cgpa-heatmap-shell {
    display: grid;
    gap: 12px;
}

.cgpa-heatmap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 320px;
}

.cgpa-heatmap-cell {
    appearance: none;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    display: grid;
    align-content: end;
    gap: 6px;
    min-height: 150px;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: none;
    background: #ffffff;
}

.cgpa-heatmap-cell:hover,
.cgpa-heatmap-cell:focus-visible,
.cgpa-heatmap-cell.is-active {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
    outline: none;
}

.cgpa-heatmap-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.cgpa-heatmap-count {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.cgpa-heatmap-percent {
    font-size: 12px;
    opacity: 0.92;
}

.cgpa-heatmap-scale {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #94a3b8;
}

.cgpa-heatmap-scale-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.12) 0%, rgba(15, 118, 110, 0.95) 100%);
}

.band-excellent.cgpa-heatmap-cell {
    color: #0f172a;
    border-color: #10b981;
}

.band-excellent.cgpa-heatmap-cell:hover,
.band-excellent.cgpa-heatmap-cell:focus-visible,
.band-excellent.cgpa-heatmap-cell.is-active {
    background: #f0fdf4;
}

.band-good.cgpa-heatmap-cell {
    color: #0f172a;
    border-color: #0f766e;
}

.band-good.cgpa-heatmap-cell:hover,
.band-good.cgpa-heatmap-cell:focus-visible,
.band-good.cgpa-heatmap-cell.is-active {
    background: #ecfdf5;
}

.band-average.cgpa-heatmap-cell {
    color: #0f172a;
    border-color: #b45309;
}

.band-average.cgpa-heatmap-cell:hover,
.band-average.cgpa-heatmap-cell:focus-visible,
.band-average.cgpa-heatmap-cell.is-active {
    background: #fef3c7;
}

.band-low.cgpa-heatmap-cell {
    color: #0f172a;
    border-color: #dc2626;
}

.band-low.cgpa-heatmap-cell:hover,
.band-low.cgpa-heatmap-cell:focus-visible,
.band-low.cgpa-heatmap-cell.is-active {
    background: #fee2e2;
}

@media (max-width: 900px) {
    .cgpa-heatmap-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .cgpa-heatmap-cell {
        min-height: 120px;
    }
}

.chart-empty {
    padding: 24px 0;
    color: #64748b;
    font-size: 13px;
}

.leaderboard-grid-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.leaderboard-grid-row .leaderboard-card {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .leaderboard-grid-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.chart-detail {
    margin-top: 10px;
    padding: 10px 0 0;
    border-top: 1px solid #e2e8f0;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
}

.leaderboard-legend {
    margin: 4px 0 18px;
    padding: 12px 14px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.leaderboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 10px;
}

.leaderboard-filter {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.leaderboard-sort {
    min-width: 188px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    box-shadow: none;
}

.leaderboard-sort:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.band-excellent,
.band-good,
.band-average,
.band-low {
    position: relative;
}

.band-excellent::after,
.band-good::after,
.band-average::after,
.band-low::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cgpa-bar:hover.band-excellent::after,
.cgpa-bar.is-active.band-excellent::after {
    opacity: 0.03;
    background: #16a34a;
}

.cgpa-bar:hover.band-good::after,
.cgpa-bar.is-active.band-good::after {
    opacity: 0.03;
    background: #14b8a6;
}

.cgpa-bar:hover.band-average::after,
.cgpa-bar.is-active.band-average::after {
    opacity: 0.03;
    background: #d97706;
}

.cgpa-bar:hover.band-low::after,
.cgpa-bar.is-active.band-low::after {
    opacity: 0.03;
    background: #dc2626;
}

@media (max-width: 900px) {
    .chart-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

.leaderboard-wrap {
    overflow: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    max-height: 56vh;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.leaderboard-table thead th {
    position: sticky;
    top: 0;
    background: #0f172a;
    color: #fff;
    text-align: left;
    padding: 14px 16px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 1;
}

.leaderboard-table tbody tr {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.leaderboard-table tbody tr:hover {
    background: #f8fafc;
}

.leaderboard-table td {
    padding: 14px 16px;
    font-size: 13px;
    color: #334155;
    vertical-align: middle;
}

.rank-cell {
    font-weight: 800;
    color: #0f172a;
}

.name-cell {
    font-weight: 700;
    color: #0f172a;
}

.table-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 700;
}

.leaderboard-row.cgpa-excellent .table-badge {
    background: #dcfce7;
    color: #166534;
}

.leaderboard-row.cgpa-good .table-badge {
    background: #ccfbf1;
    color: #0f766e;
}

.leaderboard-row.cgpa-average .table-badge {
    background: #fef3c7;
    color: #92400e;
}

.leaderboard-row.cgpa-low .table-badge {
    background: #fee2e2;
    color: #b91c1c;
}

.card-body {
    padding: 14px 16px;
    flex: 1;
}

.card-info {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.card-info:last-child {
    border-bottom: none;
}

.card-info .label {
    font-weight: 600;
    color: #6b7280;
}

.card-info .value {
    color: #1f2937;
    font-weight: 500;
}

.card-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.btn-view-details {
    width: 100%;
    padding: 8px 12px;
    background: #14b8a6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-details:hover {
    background: #0d9488;
    transform: translateY(-1px);
}

.login-form {
    margin-top: 18px;
    padding-top: 0;
    border-top: none;
}
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 280px;
    height: auto;
}

.app-header {
    display: grid;
    grid-template-columns: 160px 1fr 240px;
    gap: 12px;
    align-items: center;
    padding: 8px 0 22px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 18px;
}

.header-left { display:flex; align-items:center; justify-content:flex-start; }
.header-left .logo { max-width: 140px; }

.header-center { text-align:center; }
.app-title { font-size:20px; margin:0; color:#0f172a; font-weight:700; }
.header-center .dashboard-subtitle { margin-top:4px; font-size:12px; color:#6b7280; }

.header-right { display:flex; gap:10px; align-items:center; justify-content:flex-end; }
.header-right .btn { width: auto; padding: 8px 12px; }
.btn-outline { background: transparent; border: 1px solid #cbd5e1; color: #0f172a; }
.btn-primary { background: #14b8a6; color: white; }

.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(15,23,42,0.36); z-index: 1200; padding: 16px; }
.modal[aria-hidden="false"] { display: flex; }
.modal-content { width: 720px; max-width: 100%; background: white; border-radius: 12px; box-shadow: 0 20px 40px rgba(2,6,23,0.2); overflow: hidden; max-height: 90vh; display: flex; flex-direction: column; }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding: 12px 16px; border-bottom: 1px solid #eef2f7; flex-shrink: 0; }
.modal-body { padding: 16px; overflow-y: auto; flex: 1; }
.modal-close { background: transparent; border: none; font-size: 20px; cursor: pointer; }
.search-results { margin-top: 12px; max-height: 240px; overflow: auto; }
.search-item { padding: 8px 10px; border-radius: 8px; cursor: pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.search-item:hover, .search-item:focus, .search-item.active { background: #f1f5f9; outline: none; }
.search-item .meta { font-size:12px; color:#64748b; }
.search-preview { margin-top:10px; padding:12px; border-radius:8px; border:1px solid #eef2f7; background:#fff; min-height:48px; display:none; }
.search-preview.visible { display:block; }
.search-preview .title { font-weight:700; color:#0f172a; margin-bottom:6px; }
.search-preview .small { font-size:13px; color:#475569; }
.search-empty, .search-error { padding:10px; color:#6b7280; }
.compare-inputs { display:grid; grid-template-columns: repeat(2, 1fr); gap:10px; margin-bottom:14px; }
.compare-actions { margin-top: 14px; display:flex; justify-content:center; gap:10px; }
.compare-chart { margin-top: 18px; padding: 14px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.compare-ranking { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.compare-ranking ol { list-style: none; counter-reset: rank; padding: 0; }
.compare-ranking li { counter-increment: rank; padding: 8px 0; padding-left: 24px; position: relative; font-size: 13px; color: #475569; }
.compare-ranking li::before { content: counter(rank); position: absolute; left: 0; font-weight: 800; color: #0f172a; width: 20px; text-align: center; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.compare-chart { margin-top: 12px; min-height: 180px; }
.compare-ranking { margin-top: 12px; font-size: 14px; }

.compare-row { display:flex; align-items:center; gap:12px; margin:8px 0; }
.compare-label { width: 28%; font-weight:700; font-size:13px; color:#0f172a; }
.compare-bar { background: linear-gradient(90deg, #d1fae5 0%, #10b981 100%); padding: 8px 12px; border-radius:6px; color:#064e3b; font-weight:800; }

.compare-result { display:grid; grid-template-columns: repeat(2, 1fr); gap:16px; margin-top:20px; }
.compare-card { background:#fff; border:2px solid #eef2f7; border-radius:14px; padding:16px; display:flex; flex-direction:column; align-items:center; text-align:center; box-shadow: 0 8px 28px rgba(2,6,23,0.08); transition: all 0.3s ease; position: relative; }
.compare-card.winner { border-color: #10b981; background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #ffffff 100%); box-shadow: 0 12px 40px rgba(16, 185, 129, 0.18); transform: scale(1.02); }
.compare-card.loser { border-color: #fecaca; background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 50%, #ffffff 100%); box-shadow: 0 8px 24px rgba(239, 68, 68, 0.08); }
.compare-card img { width:80px; height:80px; object-fit:cover; border-radius:12px; margin-bottom:12px; box-shadow: 0 4px 16px rgba(2,6,23,0.12); }
.compare-card .badge { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:#10b981; color:white; padding:4px 12px; border-radius:999px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.compare-card.loser .badge { background:#ef4444; box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.compare-card .meta { display:flex; flex-direction:column; align-items:center; }
.compare-card .meta .name { font-weight:800; color:#0f172a; font-size:18px; margin-bottom:4px; }
.compare-card .meta .sub { font-size:13px; color:#64748b; margin-bottom:8px; }
.compare-card .meta .cgpa { font-size:28px; font-weight:900; color:#0f172a; background: linear-gradient(135deg, #1f2937 0%, #374151 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

@media (max-width: 700px) {
    .compare-result { grid-template-columns: 1fr; }
    .compare-card { transform: none !important; }
    .modal-content { max-height: calc(100vh - 32px); }
    .modal-body { padding: 12px; }
    .compare-inputs { grid-template-columns: 1fr; gap: 8px; }
    .compare-actions { flex-direction: column; }
    .compare-actions .btn { width: 100%; }
    .compare-chart { margin-top: 12px; min-height: 200px; padding: 10px 0; }
    .compare-ranking { margin-top: 12px; padding-top: 10px; }
    .compare-card img { width: 70px; height: 70px; }
    .compare-card .meta .name { font-size: 16px; }
    .compare-card .meta .cgpa { font-size: 24px; }
    .compare-card .badge { font-size: 10px; padding: 3px 10px; }
}

@media (max-width: 900px) {
    .app-header { grid-template-columns: 1fr; text-align: center; gap: 6px; }
    .header-left { justify-content: center; }
    .header-left .logo { max-width: 180px; margin: 0 auto; }
    .header-right { justify-content: center; }
    .compare-inputs { grid-template-columns: 1fr; }
    .compare-actions { flex-direction: column; }
    .compare-actions .btn { width: 100%; }
}

@media (max-width: 600px) {
    .modal { padding: 12px; }
    .modal-content { max-height: calc(100vh - 24px); border-radius: 8px; }
    .modal-header { padding: 10px 12px; }
    .modal-header h3 { font-size: 16px; }
    .modal-body { padding: 10px; }
    .modal-close { font-size: 24px; }
    .compare-inputs { gap: 6px; }
    .form-input.compare-roll { font-size: 16px; }
    .btn-primary { font-size: 14px; padding: 10px 16px; }
    .compare-chart { min-height: 180px; margin-top: 10px; }
    .compare-ranking li { padding: 6px 0; font-size: 12px; }
    .compare-result { gap: 12px; margin-top: 14px; }
    .compare-card { padding: 12px; }
    .compare-card img { width: 60px; height: 60px; }
    .compare-card .meta .name { font-size: 14px; }
    .compare-card .meta .cgpa { font-size: 20px; }
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    padding: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.login-form {
    margin-top: 16px;
}

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

.password-icon {
    margin-left: 5px;
}

.form-input {
    width: 100%;
    padding: 12px 0;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0;
    background: transparent;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    border-bottom-color: #14b8a6;
}

.form-input::placeholder {
    color: #9ca3af;
}



.btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-login {
    background: #14b8a6;
    color: white;
}

.btn-login:hover {
    background: #0d9488;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.results-section {
    margin-top: 30px;
    animation: fadeInUp 0.4s ease;
}

.student-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 28px;
}

.result-title {
    display: none;
}

.details-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #4b5563;
    min-width: 140px;
    font-size: 13px;
}

.detail-value {
    color: #1f2937;
    font-size: 13px;
    flex: 1;
}

.dashboard-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid #14b8a6;
}

.student-name-dashboard {
    font-size: 28px;
    font-weight: 700;
    color: #14b8a6;
    margin: 0;
    padding: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.08);
    border-color: #14b8a6;
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.performance-metrics {
    grid-column: 1 / -1;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.metric-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-item.metric-highlight {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfb 100%);
    border-color: #14b8a6;
}

.metric-item.metric-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
    border-color: #f59e0b;
}

.metric-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.metric-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #14b8a6;
}

.metric-item.metric-warning .metric-value {
    color: #f59e0b;
}

.semester-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.semester-item {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfb 100%);
    border: 2px solid #14b8a6;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.sem-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #14b8a6;
    margin-bottom: 8px;
}

.sem-sgpa {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 4px;
}

.sem-backlog {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.info-item {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #14b8a6;
}

.info-item.full {
    grid-column: 1 / -1;
}

.info-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    word-break: break-word;
}

@media (max-width: 1100px) {
    .right-section {
        width: 100%;
        max-width: none;
        padding: 24px;
    }

    .leaderboard-table {
        min-width: 840px;
    }

    .leaderboard-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .leaderboard-sort {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    body {
        overflow: auto;
    }

    .container {
        min-height: 100vh;
        padding: 0;
    }

    .right-section {
        width: 100%;
        max-width: 100%;
        max-height: none;
        padding: 18px;
        border-radius: 0;
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-title {
        font-size: 22px;
    }

    .leaderboard-wrap {
        max-height: none;
    }

    .leaderboard-table {
        min-width: 760px;
    }

    .leaderboard-legend {
        margin-bottom: 14px;
        font-size: 12px;
    }
}

.error-section {
    margin-top: 30px;
    animation: fadeInUp 0.4s ease;
}

.error-card {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
}

.error-card svg {
    color: #ef4444;
    margin-bottom: 16px;
}

.error-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 8px 0;
}

.error-card p {
    font-size: 14px;
    color: #7f1d1d;
    margin: 0;
}

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

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

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 6px 30px rgba(245, 158, 11, 0.6);
    }
}

.detail-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.detail-name {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.detail-meta {
    font-size: 13px;
    color: #6b7280;
}

.detail-grid {
    display: grid;
    gap: 24px;
}

.detail-section {
    display: block;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1f2937;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.metric-box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.metric-box:hover {
    border-color: #14b8a6;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.1);
}

.metric-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 6px;
}

.metric-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.info-table {
    display: grid;
    gap: 1px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.info-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
}

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

.info-key {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-val {
    font-size: 13px;
    color: #1f2937;
    word-break: break-word;
}

.semester-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.sem-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 14px;
    background: #ffffff;
    border-right: 1px solid #f3f4f6;
}

.sem-row:nth-child(5n) {
    border-right: none;
}

.sem-key {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.sem-val {
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .detail-section {
        grid-column: 1 / -1;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .info-key {
        color: #9ca3af;
        font-size: 11px;
    }

    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 1024px) {
    .right-section {
        flex: none;
    }
}

@media (max-width: 768px) {
    .container {
        display: block;
    }

    .left-section {
        display: none;
    }

    .right-section {
        padding: 20px;
    }

    .logo {
        max-width: 240px;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .right-section {
        padding: 16px;
    }

    .login-container {
        max-width: 100%;
    }

    .logo {
        max-width: 200px;
    }

    .role-options {
        gap: 20px;
    }
}

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

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

.login-container {
    animation: fadeIn 0.5s ease;
}

.site-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

.site-footer a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .site-footer {
        margin-top: 20px;
        padding-top: 14px;
    }

    .site-footer p {
        font-size: 12px;
    }
}