/* ===================================================== */
/* FULL PREMIUM RESPONSIVE CSS */
/* Admin + Staff + Student Result Portal */
/* Mobile + Tablet + Laptop + Desktop */
/* Upload Path: public_html/univresult/style.css */
/* ===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:#f4f7fc;
    color:#222;
    min-height:100vh;
    width:100%;
    overflow-x:hidden;
}

.container{
    width:100%;
    max-width:1600px;
    margin:auto;
    padding:20px;
}

/* ========================= */
/* LOGO SECTION */
/* ========================= */

.top-logo{
    text-align:center;
    margin-bottom:25px;
}

.top-logo img{
    width:90px;
    height:auto;
    margin-bottom:10px;
}

.top-logo h1{
    font-size:34px;
    font-weight:700;
    color:#111;
    margin-bottom:8px;
}

.top-logo p{
    font-size:16px;
    color:#666;
}

/* ========================= */
/* MAIN CARD */
/* ========================= */

.search-card,
.result-card{
    background:#fff;
    border-radius:18px;
    padding:25px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
    margin-bottom:25px;
    width:100%;
}

/* ========================= */
/* TITLES */
/* ========================= */

.search-card h2,
.result-title{
    font-size:26px;
    font-weight:700;
    color:#111;
    margin-bottom:20px;
}

.search-card p{
    font-size:15px;
    color:#666;
    margin-bottom:15px;
}

/* ========================= */
/* FORM */
/* ========================= */

form{
    width:100%;
}

input,
select,
textarea{
    width:100%;
    height:50px;
    border:1px solid #ddd;
    border-radius:12px;
    padding:0 15px;
    font-size:15px;
    background:#fff;
    outline:none;
    transition:0.3s;
}

textarea{
    height:120px;
    padding-top:12px;
    resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#111;
}

/* ========================= */
/* 2 COLUMN FORM GRID */
/* ========================= */

.form-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:15px;
    align-items:start;
}

.full-width{
    grid-column:1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea{
    width:100%;
    margin-bottom:0;
}

/* ========================= */
/* BUTTON */
/* ========================= */

button,
.back-btn{
    display:block;
    width:100%;
    text-align:center;
    text-decoration:none;
    background:#111;
    color:#fff;
    border:none;
    border-radius:12px;
    padding:15px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    margin-top:10px;
    transition:0.3s;
}

button:hover,
.back-btn:hover{
    opacity:0.92;
}

/* ========================= */
/* RESULT DETAILS */
/* ========================= */

.result-card p{
    font-size:17px;
    line-height:1.9;
    margin-bottom:10px;
    word-break:break-word;
}

.result-card b{
    color:#000;
    font-weight:700;
}

/* ========================= */
/* NOTE */
/* ========================= */

.note{
    background:#fafafa;
    border-left:4px solid #111;
    padding:14px;
    border-radius:10px;
    font-size:14px;
    margin-top:15px;
}

/* ========================= */
/* TABLE */
/* ========================= */

.table-wrap{
    width:100%;
    overflow-x:auto;
    overflow-y:auto;
    max-height:75vh;
    margin-top:20px;
}

table{
    width:100%;
    min-width:1300px;
    border-collapse:collapse;
    background:#fff;
}

table th,
table td{
    border:1px solid #e5e5e5;
    padding:12px;
    text-align:left;
    font-size:14px;
    white-space:nowrap;
}

table th{
    background:#fafafa;
    font-weight:700;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.footer{
    text-align:center;
    font-size:14px;
    color:#666;
    margin-top:20px;
    padding-bottom:20px;
}

/* ========================= */
/* DASHBOARD GRID */
/* ========================= */

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
    margin-top:20px;
}

/* ========================= */
/* RESULT PAGE WATERMARK */
/* ========================= */

.result-card{
    position:relative;
    overflow:hidden;
}

.result-card::before{
    content:"STUDENT RESULT";
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    font-size:60px;
    font-weight:700;
    color:rgba(0,0,0,0.03);
    z-index:0;
    white-space:nowrap;
    pointer-events:none;
}

.result-card *{
    position:relative;
    z-index:1;
}

/* ========================= */
/* TABLET RESPONSIVE */
/* ========================= */

@media (max-width:992px){

    .container{
        padding:15px;
    }

    .top-logo h1{
        font-size:28px;
    }

    .search-card,
    .result-card{
        padding:20px;
    }

    .search-card h2,
    .result-title{
        font-size:22px;
    }
}

/* ========================= */
/* MOBILE RESPONSIVE */
/* ========================= */

@media (max-width:768px){

    .container{
        padding:10px;
    }

    .top-logo img{
        width:75px;
    }

    .top-logo h1{
        font-size:22px;
    }

    .top-logo p{
        font-size:14px;
    }

    .search-card,
    .result-card{
        padding:15px;
        border-radius:14px;
    }

    .search-card h2,
    .result-title{
        font-size:18px;
    }

    .result-card p{
        font-size:14px;
        line-height:1.8;
    }

    input,
    select,
    textarea{
        height:46px;
        font-size:14px;
        border-radius:10px;
    }

    /* mobile single column */
    .form-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .full-width{
        grid-column:auto;
    }

    button,
    .back-btn{
        font-size:14px;
        padding:14px;
        border-radius:10px;
    }

    table th,
    table td{
        font-size:13px;
        padding:10px;
    }

    table{
        min-width:1000px;
    }

    .result-card::before{
        font-size:34px;
    }
}

/* ========================= */
/* SMALL MOBILE */
/* ========================= */

@media (max-width:480px){

    .top-logo h1{
        font-size:20px;
    }

    .search-card h2,
    .result-title{
        font-size:17px;
    }

    .result-card p{
        font-size:13px;
    }

    .container{
        padding:8px;
    }

    .result-card::before{
        font-size:24px;
    }
}