 /* =========================
       BIGDATA DASHBOARD
       ========================= */

    .bigdata-page {
        margin-top: 15px;
        padding-bottom: 40px;
    }

    /* Hero */
    .bigdata-hero {
        position: relative;
        overflow: hidden;
        border-radius: 22px;
        padding: 35px 40px;
        margin-bottom: 25px;
        background: linear-gradient(135deg, #087f5b, #0b8f68 55%, #12a477);
        color: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    }

    .bigdata-hero::before {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .08);
        right: -80px;
        top: -100px;
    }

    .bigdata-hero::after {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .06);
        right: 180px;
        bottom: -100px;
    }

    .hero-content {
        position: relative;
        z-index: 2;
    }

    .hero-icon {
        width: 68px;
        height: 68px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 18px;
        background: rgba(255, 255, 255, .16);
        font-size: 30px;
        margin-bottom: 18px;
    }

    .bigdata-hero h1 {
        font-size: 32px;
        font-weight: 700;
        margin: 0 0 8px;
    }

    .bigdata-hero p {
        margin: 0;
        font-size: 16px;
        opacity: .92;
    }

    .summary-date {
        display: inline-block;
        margin-top: 18px;
        padding: 7px 14px;
        border-radius: 30px;
        background: rgba(255, 255, 255, .14);
        font-size: 13px;
    }

    /* Stat cards */
    .stat-card {
        position: relative;
        overflow: hidden;
        border: 0;
        border-radius: 18px;
        background: #fff;
        padding: 23px;
        margin-bottom: 22px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, .07);
        transition: all .25s ease;
    }

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, .11);
    }

    .stat-card::after {
        content: "";
        position: absolute;
        width: 90px;
        height: 90px;
        border-radius: 50%;
        right: -35px;
        bottom: -40px;
        background: rgba(0, 0, 0, .025);
    }

    .stat-icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 23px;
        margin-bottom: 14px;
    }

    .stat-title {
        font-size: 14px;
        color: #777;
        margin-bottom: 5px;
    }

    .stat-number {
        font-size: 30px;
        line-height: 1.1;
        font-weight: 700;
        color: #222;
    }

    .stat-unit {
        font-size: 13px;
        color: #999;
        margin-left: 4px;
    }

    /* Colors */
    .stat-school .stat-icon {
        background: #e8f7f1;
        color: #087f5b;
    }

    .stat-teacher .stat-icon {
        background: #eaf2ff;
        color: #2672d8;
    }

    .stat-student .stat-icon {
        background: #fff4df;
        color: #e99617;
    }

    .stat-room .stat-icon {
        background: #f0eafd;
        color: #7651c9;
    }

    /* Gender */
    .gender-card {
        border: 0;
        border-radius: 18px;
        background: #fff;
        padding: 25px;
        margin-bottom: 22px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, .07);
    }

    .section-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 20px;
        color: #222;
    }

    .gender-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 18px;
        border-radius: 14px;
        margin-bottom: 12px;
    }

    .gender-box:last-child {
        margin-bottom: 0;
    }

    .gender-male {
        background: #eef6ff;
    }

    .gender-female {
        background: #fff0f5;
    }

    .gender-label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 600;
    }

    .gender-value {
        font-size: 20px;
        font-weight: 700;
    }

    .gender-percent {
        font-size: 12px;
        color: #888;
        margin-left: 5px;
    }

    /* Menu */
    .menu-card {
        border: 0;
        border-radius: 18px;
        background: #fff;
        padding: 25px;
        margin-bottom: 22px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, .07);
    }

    .bigdata-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .menu-item {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 16px;
        border-radius: 14px;
        color: #333;
        text-decoration: none !important;
        background: #f8f9fa;
        transition: all .2s ease;
    }

    .menu-item:hover {
        background: #eaf7f2;
        color: #087f5b;
        transform: translateY(-2px);
    }

    .menu-icon {
        width: 43px;
        height: 43px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: #fff;
        color: #087f5b;
        font-size: 18px;
        box-shadow: 0 2px 7px rgba(0, 0, 0, .06);
    }

    .menu-text strong {
        display: block;
        font-size: 14px;
    }

    .menu-text small {
        color: #999;
        font-size: 11px;
    }

    /* Footer */
    .bigdata-footer {
        text-align: center;
        margin-top: 15px;
        color: #999;
        font-size: 12px;
    }

    @media (max-width: 767px) {

        .bigdata-hero {
            padding: 28px 25px;
        }

        .bigdata-hero h1 {
            font-size: 25px;
        }

        .bigdata-menu {
            grid-template-columns: 1fr;
        }

    }


 /*  #== เลือกปีการศึกษา ===#*/
 .academicYear {
        width: 110px;
        height: 40px;
        padding: 0 36px 0 14px;

        border: 1px solid #dadce0;
        border-radius: 20px;

        background-color: #fff;
        color: #202124;

        font-size: 14px;
        font-weight: 500;

        outline: none;
        cursor: pointer;

        transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            background-color 0.2s ease;

        box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);

        appearance: none;

        background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 15px;
    }

    .academicYear:hover {
        background-color: #f8f9fa;
        border-color: #bdc1c6;
        box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
    }

    .academicYear:focus {
        border-color: #1a73e8;
        box-shadow:
            0 0 0 3px rgba(26, 115, 232, 0.12),
            0 1px 3px rgba(60, 64, 67, 0.15);
    }

    .academicYear option {
        color: #202124;
        background: #fff;
    }