@import url(
    'https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap'
);


* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


:root {

    --primary: #2563eb;

    --primary-dark: #1d4ed8;

    --text: #172554;

    --muted: #64748b;

    --border: #e2e8f0;

    --background: #f5f8fc;

}


body {

    font-family: "Cairo", sans-serif;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eef4ff
        );

    color: #1e293b;

    min-height: 100vh;

}


.page {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

}


/* ================= HEADER ================= */

.header {

    background: rgba(255,255,255,.95);

    border-bottom: 1px solid #e8edf3;

    box-shadow:
        0 4px 20px rgba(15,23,42,.04);

}


.header-content {

    width: 90%;

    max-width: 1100px;

    margin: auto;

    padding: 20px 0;

}


.logo {

    display: flex;

    align-items: center;

    gap: 14px;

}


.logo-icon {

    width: 55px;

    height: 55px;

    border-radius: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    font-size: 25px;

    box-shadow:
        0 8px 20px rgba(37,99,235,.22);

}


.logo h1 {

    color: var(--text);

    font-size: 21px;

    font-weight: 800;

}


.logo p {

    color: var(--muted);

    font-size: 12px;

}


/* ================= MAIN ================= */

.main-container {

    width: 92%;

    max-width: 850px;

    margin: 50px auto;

    flex: 1;

}


/* ================= SEARCH CARD ================= */

.search-card {

    background: white;

    border-radius: 24px;

    padding: 35px;

    border: 1px solid #edf1f5;

    box-shadow:
        0 20px 50px rgba(15,23,42,.07);

}


.welcome {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 30px;

}


.welcome-icon {

    width: 52px;

    height: 52px;

    border-radius: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eff6ff;

    font-size: 23px;

}


.welcome h2 {

    color: var(--text);

    font-size: 21px;

    margin-bottom: 4px;

}


.welcome p {

    color: var(--muted);

    font-size: 13px;

}


/* ================= FORM ================= */

.search-form {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

}


.input-group {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.input-group label {

    font-size: 13px;

    font-weight: 700;

    color: #334155;

}


.input-wrapper {

    position: relative;

}


.input-icon {

    position: absolute;

    right: 15px;

    top: 50%;

    transform: translateY(-50%);

    color: #64748b;

    font-weight: 700;

}


.input-wrapper input {

    width: 100%;

    height: 54px;

    padding:
        0 45px
        0 15px;

    border:

        1.5px solid
        var(--border);

    border-radius: 12px;

    background: #fafcff;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition: .25s;

}


.input-wrapper input:focus {

    background: white;

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(37,99,235,.08);

}


.search-button {

    grid-column: 1 / -1;

    height: 56px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    box-shadow:
        0 10px 25px
        rgba(37,99,235,.22);

    transition: .25s;

}


.search-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px
        rgba(37,99,235,.30);

}


.button-arrow {

    font-size: 20px;

}


/* ================= ERROR ================= */

.error-box {

    margin-top: 20px;

    padding: 14px 17px;

    border-radius: 12px;

    background: #fff1f2;

    border: 1px solid #fecdd3;

    color: #be123c;

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 13px;

}


.error-icon {

    width: 25px;

    height: 25px;

    border-radius: 50%;

    background: #e11d48;

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;

}


/* ================= RESULT ================= */

.result-card {

    margin-top: 25px;

    background: white;

    border-radius: 24px;

    padding: 35px;

    border: 1px solid #edf1f5;

    box-shadow:
        0 20px 50px rgba(15,23,42,.07);

    animation:
        resultAnimation .4s ease;

}


@keyframes resultAnimation {

    from {

        opacity: 0;

        transform: translateY(15px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


.result-title {

    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 25px;

    border-bottom:
        1px solid #edf1f5;

}


.success-icon {

    width: 52px;

    height: 52px;

    border-radius: 50%;

    background: #dcfce7;

    color: #16a34a;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

    font-weight: 800;

}


.result-title h2 {

    color: var(--text);

    font-size: 21px;

}


.result-title p {

    color: var(--muted);

    font-size: 12px;

}


.student-name {

    margin:
        25px 0;

    padding: 18px;

    border-radius: 13px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fbff
        );

    color: #1d4ed8;

    font-size: 20px;

    font-weight: 800;

}


.details-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;

}


.detail-box {

    background: #f8fafc;

    border: 1px solid #edf2f7;

    border-radius: 13px;

    padding: 15px 17px;

}


.detail-box span {

    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-bottom: 5px;

}


.detail-box strong {

    color: #1e293b;

    font-size: 14px;

}


.print-button {

    width: 100%;

    height: 50px;

    margin-top: 25px;

    border: 1px solid #dbe3ed;

    border-radius: 12px;

    background: white;

    color: #334155;

    font-family: inherit;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;

}


.print-button:hover {

    background: #f8fafc;

}


/* ================= FOOTER ================= */

footer {

    text-align: center;

    padding: 25px;

    color: #94a3b8;

    font-size: 11px;

}


footer span {

    margin-right: 8px;

}


/* ================= MOBILE ================= */

@media (max-width: 650px) {


    .header-content {

        width: 94%;

    }


    .logo h1 {

        font-size: 17px;

    }


    .logo p {

        font-size: 10px;

    }


    .logo-icon {

        width: 48px;

        height: 48px;

        font-size: 21px;

    }


    .main-container {

        width: 94%;

        margin: 30px auto;

    }


    .search-card,
    .result-card {

        padding: 22px;

        border-radius: 19px;

    }


    .welcome h2 {

        font-size: 18px;

    }


    .welcome p {

        font-size: 11px;

    }


    .search-form {

        grid-template-columns: 1fr;

    }


    .search-button {

        grid-column: auto;

    }


    .details-grid {

        grid-template-columns: 1fr;

    }


    .student-name {

        font-size: 17px;

    }

}


/* ================= PRINT ================= */

@media print {


    body {

        background: white;

    }


    .header,
    .search-card,
    footer,
    .print-button {

        display: none;

    }


    .main-container {

        width: 100%;

        margin: 0;

    }


    .result-card {

        box-shadow: none;

        border: 1px solid #ddd;

    }

}