* {
    box-sizing: border-box;
}

body {
    background: #eef2f7;
    font-family: 'Segoe UI', sans-serif;
    color: #2c3e50;
}

.exam-wrapper {
    max-width: 2000px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.results-container {
    width: 100%;
    max-width: 1600px;
    margin: 40px auto;
}

/* TITLE */

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

    .page-header h1 {
        font-size: 52px;
        font-weight: 700;
        color: #1877d3;
        margin-bottom: 10px;
    }

    .page-header p {
        font-size: 18px;
        color: #7b8ba1;
    }

/* LEVEL TABS */

.levels-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.level-card {
    flex: 1;
    min-width: 180px;
    height: 90px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

    .level-card:hover {
        transform: translateY(-4px);
    }

    .level-card.active {
        border: 4px solid white;
        box-shadow: 0 10px 25px rgba(0,0,0,.18);
    }

        .level-card.active::after {
            content: "";
            position: absolute;
            bottom: -14px;
            left: 50%;
            transform: translateX(-50%);
            border-left: 14px solid transparent;
            border-right: 14px solid transparent;
            border-top: 16px solid white;
        }

.a1 {
    background: linear-gradient(135deg,#f5c16c,#eaa84f);
}

.a2 {
    background: linear-gradient(135deg,#ebe27a,#d5c948);
}

.b1 {
    background: linear-gradient(135deg,#b8d300,#8eb000);
}

.b2 {
    background: linear-gradient(135deg,#3dbd3d,#249924);
}

/* FILTER BAR */

.filter-bar {
    background: white;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    width: 350px;
}

    .search-box i {
        position: absolute;
        left: 15px;
        top: 16px;
        color: #9aa8b5;
    }

    .search-box input {
        width: 100%;
        height: 52px;
        border-radius: 12px;
        border: 1px solid #dbe4ef;
        padding-left: 45px;
        font-size: 16px;
        outline: none;
        transition: .3s;
    }

        .search-box input:focus {
            border-color: #1f8fff;
        }

/* TABLE */

.table-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,.06);
}

.table-responsive {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

    .results-table thead {
        background: linear-gradient(90deg,#1b75d0,#28a0ff);
    }

    .results-table th {
        padding: 22px 16px;
        color: white;
        font-size: 15px;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
    }

    .results-table td {
        padding: 20px 16px;
        text-align: center;
        border-bottom: 1px solid #edf2f7;
        font-size: 15px;
    }

    .results-table tbody tr {
        transition: .2s;
    }

        .results-table tbody tr:hover {
            background: #f8fbff;
        }

/* BADGES */

.badge-pass {
    background: #d8f5df;
    color: #16853b;
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
}

.badge-fail {
    background: #ffe1e1;
    color: #c62828;
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
}

.badge-notapply {
    background: #fff3cd;
    color: #856404;
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
}

/* INFO GRID */

.bottom-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 25px;
    margin-top: 35px;
}

.info-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

    .info-card h3 {
        margin-top: 0;
        margin-bottom: 18px;
        font-size: 22px;
        color: #1c75d8;
    }

    .info-card p,
    .info-card li {
        line-height: 1.8;
        color: #5f6f82;
    }

    .info-card ul {
        padding-left: 20px;
        margin: 0;
    }

.alert-box {
    background: linear-gradient(135deg,#dff3ff,#edf9ff);
    border-left: 5px solid #1f8fff;
}

.facebook-link {
    display: inline-block;
    margin-top: 10px;
    color: #e53935;
    font-weight: 700;
    text-decoration: none;
}

.blur-row {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    opacity: .7;
}

/* MOBILE */
@media(max-width: 1200px) {
    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .page-header h1 {
        font-size: 34px;
    }

    .level-card {
        min-width: 120px;
        height: 70px;
        font-size: 24px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }
}