.grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    padding: 0 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}



.grade-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}



.grade-badge.excellent {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}



.grade-badge.good {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}



.grade-badge.satisfactory {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}



.grade-badge.unsatisfactory,
.grade-badge.poor {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}



.grade-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    margin-bottom: 4px;
}



.grade-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
}



.grade-badge:hover .grade-tooltip {
    opacity: 1;
    visibility: visible;
}



.grades-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 140px;
}



.grades-header-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: -16px;
    position: relative;
    z-index: 2;
}



.grades-header-stats+.clickable-subject,
.grades-header-stats+.subject-grades {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: -8px;
}



.subject-grades {
    background: rgba(255, 255, 255, 0.03);
}



.clickable-subject .grades-list {
    pointer-events: none;
}



.clickable-subject .grade {
    pointer-events: none;
}



.subject-grades:active {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0.98);
}



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



.subject-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}



.subject-average {
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 4px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}



.subject-average.excellent {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}



.subject-average.good {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}



.subject-average.satisfactory {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}



.subject-average.fair {
    color: #fb923c;
    background: rgba(251, 146, 60, 0.1);
    border-color: rgba(251, 146, 60, 0.2);
}



.subject-average.poor {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}



.grades-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}



.grade {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}



.grade.excellent {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.25);
}



.grade.good {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.25);
}



.grade.satisfactory {
    background: rgba(251, 146, 60, 0.15);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.25);
}



.grade.unsatisfactory,
.grade.poor {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
}



.skeleton-grades-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite;
}



.skeleton-grades-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200px;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    animation: shimmer 1.8s infinite;
}



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



.skeleton-subject-name {
    width: 45%;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9px;
}



.skeleton-subject-average {
    width: 40px;
    height: 28px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 12px;
}



.skeleton-grades-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}



.skeleton-grade {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.grades-loading-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grades-skeleton-summary,
.grades-skeleton-rating-row,
.grades-skeleton-toggle-row,
.grades-skeleton-subject-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(18, 22, 30, 0.78) 0%, rgba(20, 24, 33, 0.68) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 22px rgba(0, 0, 0, 0.2);
    animation: grades-skeleton-pulse 1.5s ease-in-out infinite;
}

.grades-skeleton-summary::before,
.grades-skeleton-rating-row::before,
.grades-skeleton-toggle-row::before,
.grades-skeleton-subject-card::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(108deg, transparent 0%, rgba(255, 255, 255, 0.1) 48%, transparent 82%);
    animation: grades-skeleton-shimmer 1.8s ease-in-out infinite;
}

.grades-skeleton-summary {
    min-height: 116px;
    padding: 16px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: stretch;
}

.grades-skeleton-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.grades-skeleton-label,
.grades-skeleton-average,
.grades-skeleton-stat-label,
.grades-skeleton-stat-value,
.grades-skeleton-subject-name,
.grades-skeleton-subject-average,
.grades-skeleton-chip {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.24);
}

.grades-skeleton-label {
    width: 110px;
    height: 14px;
}

.grades-skeleton-average {
    width: 96px;
    height: 42px;
}

.grades-skeleton-stat-cards {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.grades-skeleton-stat-card {
    min-width: 82px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.grades-skeleton-stat-label {
    width: 52px;
    height: 10px;
}

.grades-skeleton-stat-value {
    width: 46px;
    height: 22px;
}

.grades-skeleton-rating-row {
    height: 58px;
}

.grades-skeleton-toggle-row {
    height: 48px;
}

.grades-skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grades-skeleton-subject-card {
    padding: 16px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grades-skeleton-subject-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.48) 0%, rgba(59, 130, 246, 0.42) 100%);
}

.grades-skeleton-subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.grades-skeleton-subject-name {
    width: 46%;
    height: 20px;
}

.grades-skeleton-subject-average {
    width: 58px;
    height: 28px;
}

.grades-skeleton-chips {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grades-skeleton-chip {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

@keyframes grades-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes grades-skeleton-pulse {
    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.95;
    }
}

@media (max-width: 480px) {
    .grades-skeleton-summary {
        min-height: 104px;
        padding: 14px;
        gap: 10px;
    }

    .grades-skeleton-label {
        width: 92px;
    }

    .grades-skeleton-average {
        width: 82px;
        height: 36px;
    }

    .grades-skeleton-stat-card {
        min-width: 70px;
        padding: 8px 6px;
    }

    .grades-skeleton-rating-row {
        height: 54px;
    }

    .grades-skeleton-toggle-row {
        height: 44px;
    }

    .grades-skeleton-subject-card {
        min-height: 124px;
        padding: 14px;
    }

    .grades-skeleton-chip {
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grades-skeleton-summary,
    .grades-skeleton-rating-row,
    .grades-skeleton-toggle-row,
    .grades-skeleton-subject-card,
    .grades-skeleton-summary::before,
    .grades-skeleton-rating-row::before,
    .grades-skeleton-toggle-row::before,
    .grades-skeleton-subject-card::before {
        animation: none;
        transform: none;
    }
}

.grade-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}




.grade-value.excellent {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}



.grade-value.good {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}



.grade-value.satisfactory {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}



.grade-value.poor {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}



.grade-stats {
    margin-top: 8px;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
}



.grade-stats-error-link {
    text-decoration: none;
    display: block;
    margin-top: 8px;
    transition: transform 0.2s ease;
}



.grade-stats-error-link:hover {
    transform: translateY(-1px);
}



.grade-stats-error-link:active {
    transform: translateY(0);
}



.grade-stats-error {
    padding: 8px 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}



.grade-stats-error-link:hover .grade-stats-error {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}



.grade-detailed-stats {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}



.no-grades {
    text-align: center;
    color: #b3b3b3;
    font-style: italic;
    padding: 20px;
}



.grade-distribution {
    margin-bottom: 24px;
}



.grade-distribution h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}



.distribution-grade {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}



.distribution-grade.excellent {
    background: #10b981;
}



.distribution-grade.good {
    background: #3b82f6;
}



.distribution-grade.satisfactory {
    background: #f59e0b;
}



.distribution-grade.poor {
    background: #ef4444;
}



.distribution-grade.very-poor {
    background: #991b1b;
}



.grade-types-stats h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}



.grade-types-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}



.grade-type-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.grade-type-info {
    flex: 1;
}



.grade-type-name {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}



.grade-type-details {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
}



.grade-type-average {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    padding: 4px 8px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}



.absence-subject-info {
    flex: 1;
}



.absence-subject-name {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2px;
}



.absence-subject-details {
    font-size: 11px;
    color: #9ca3af;
}





.overall-average-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    gap: 16px;
    width: 100%;
}







.overall-average-card.excellent {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}





.overall-average-card.good {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.15) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}





.overall-average-card.satisfactory {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
}





.overall-average-card.fair {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, rgba(249, 115, 22, 0.15) 100%);
    border: 1px solid rgba(251, 146, 60, 0.2);
}





.overall-average-card.poor {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}





.overall-average-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 20px;
    pointer-events: none;
}





.overall-average-card.excellent::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}





.overall-average-card.good::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
}





.overall-average-card.satisfactory::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
}





.overall-average-card.fair::before {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
}





.overall-average-card.poor::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
}





.overall-average-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}





.overall-average-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}





.overall-average-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}





.overall-average-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}





.overall-average-value {
    font-size: 36px;
    font-weight: 800;
    color: #3b82f6;
    text-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
    line-height: 1;
    letter-spacing: -1px;
}





.overall-average-card.excellent .overall-average-value {
    color: #10b981;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}





.overall-average-card.good .overall-average-value {
    color: #22c55e;
    text-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}





.overall-average-card.satisfactory .overall-average-value {
    color: #f59e0b;
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}





.overall-average-card.fair .overall-average-value {
    color: #fb923c;
    text-shadow: 0 2px 4px rgba(251, 146, 60, 0.3);
}





.overall-average-card.poor .overall-average-value {
    color: #ef4444;
    text-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}





.overall-average-stats {
    display: flex;
    gap: clamp(6px, 2vw, 12px);
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    flex-wrap: nowrap;
    margin-left: auto;
}





.stat-item {
    text-align: center;
    padding: clamp(8px, 2vw, 12px) clamp(8px, 2.5vw, 16px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(8px, 2vw, 14px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}





.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}





.stat-label {
    font-size: clamp(7px, 2vw, 11px);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}





.stat-value {
    font-size: clamp(12px, 3.5vw, 20px);
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}





.stat-value.trend {
    color: #10b981;
    font-size: clamp(16px, 4vw, 24px);
}





.stat-value.trend.neutral {
    color: #f59e0b;
}





.stat-value.trend.negative {
    color: #ef4444;
}





.overall-average-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 16px 16px 12px 16px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}





.overall-average-card:active {
    transform: scale(0.98);
}





.overall-average-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
    animation: shimmerGlow 8s ease-in-out infinite;
}





.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}





.stats-summary .stats-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}





.stats-summary .stats-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    line-height: 1.2;
}





.stats-summary .stats-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}





.stats-summary .stats-item:first-child .stats-value {
    color: #3b82f6;
}





.clickable-subject {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}





.clickable-subject:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.1);
    z-index: 2;
}





.clickable-subject.excellent {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.04);
}





.clickable-subject.excellent:hover {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.1);
}





.clickable-subject.good {
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.04);
}





.clickable-subject.good:hover {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.1);
}





.clickable-subject.satisfactory {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.04);
}





.clickable-subject.satisfactory:hover {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.1);
}





.clickable-subject.fair {
    border-color: rgba(251, 146, 60, 0.2);
    background: rgba(251, 146, 60, 0.04);
}





.clickable-subject.fair:hover {
    border-color: rgba(251, 146, 60, 0.35);
    box-shadow: 0 8px 16px rgba(251, 146, 60, 0.1);
}





.clickable-subject.poor {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.04);
}





.clickable-subject.poor:hover {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.1);
}





.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}





.stat-item:active {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0.95);
}





.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 4px;
}





.stat-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}





.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}





.overall-average-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}





.stat-column .stat-label {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 6px;
    font-weight: 500;
}





.stat-column .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}





.stat-column .stat-value.big-value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
    .subjects-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .subjects-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.grades-header-stats .overall-average-value,
.grades-header-stats .overall-average-stats .stat-value {
    line-height: 1;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.grades-header-stats .overall-average-stats .stat-item {
    justify-content: center;
    gap: 5px;
}

.grades-header-stats .overall-average-stats .stat-label {
    line-height: 1.1;
}

.grades-header-stats .overall-average-stats .stat-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.1em;
    letter-spacing: 0;
}
