/* Tablet Optimization */
@media screen and (max-width: 850px) {
    .glass-container {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .result-card-box {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Mobile Perfection */
@media screen and (max-width: 600px) {
    body {
        padding: 0.8rem;
    }

    .glass-container {
        padding: 1rem;
        border-radius: 1.2rem;
    }

    .header-pill {
        padding: 1.2rem 0.8rem;
        margin-bottom: 1.5rem;
    }

    header h1 {
        font-size: 1.6rem !important;
    }

    header h2 {
        font-size: 0.85rem !important;
    }

    .result-card-box {
        padding: 1.2rem;
        border-radius: 1.2rem;
        margin-bottom: 1.5rem;
    }

    /* Keep the meter smaller for mobile */
    #gpa-meter {
        width: 140px;
        height: 140px;
    }

    

    /* Font size scaling for side-by-side layout on mobile */
    .stat-badge {
        padding: 0.6rem;
    }

    .stat-badge p:first-child {
        font-size: 0.55rem !important;
    }

    #total-percentage {
        font-size: 1.4rem !important;
    }

    #total-grade {
        font-size: 1.6rem !important;
    }

    .subject-card {
        padding: 0.8rem;
    }

    .footer-pill {
        padding: 1.2rem 0.8rem;
    }

    .footer-pill p:nth-child(2) {
        font-size: 1.5rem !important;
    }

    .footer-pill p:last-child {
        font-size: 0.65rem !important;
    }
    /* Keep the meter smaller for mobile so stats fit next to it */
    #gpa-meter {
        width: 110px;
        height: 110px;
    }

    #total-gpa {
        font-size: 1.6rem !important;
    }

    /* Font size scaling for side-by-side layout on mobile */
    .stat-badge {
        padding: 0.5rem;
    }
}
