﻿/* =====================================
   EXAM GATE ADMIN PANEL
===================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:Arial, Helvetica, sans-serif;

    background:#f4f6f9;

    color:#333;
}

/* =====================================
   LOGIN PAGE
===================================== */

.login-page{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:30px;
}

.login-box{

    width:100%;

    max-width:650px;

    background:#ffffff;

    padding:60px;

    border-radius:20px;

    box-shadow:
    0 10px 40px rgba(0,0,0,.10);

    text-align:center;
}

.login-box h1{

    color:#008751;

    font-size:42px;

    margin-bottom:15px;
}

.login-box p{

    color:#666;

    margin-bottom:35px;

    font-size:16px;
}

.login-box label{

    display:block;

    text-align:left;

    font-weight:bold;

    margin-bottom:8px;

    margin-top:18px;
}

.login-box input{

    width:100%;

    padding:15px;

    border:1px solid #ccc;

    border-radius:10px;

    font-size:16px;
}

.login-box input:focus{

    outline:none;

    border-color:#008751;

    box-shadow:
    0 0 10px rgba(0,135,81,.2);
}

.login-btn{

    width:100%;

    margin-top:25px;

    padding:16px;

    border:none;

    border-radius:12px;

    background:#008751;

    color:#fff;

    font-size:20px;

    font-weight:bold;

    cursor:pointer;

    transition:.3s;
}

.login-btn:hover{

    background:#006b3f;
}

.error-box{

    background:#fff0f0;

    color:#c00000;

    border-left:5px solid red;

    padding:15px;

    border-radius:8px;

    margin-bottom:20px;
}

/* =====================================
   DASHBOARD HEADER
===================================== */

.dashboard-header{

    background:#008751;

    color:#fff;

    padding:25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;
}

.dashboard-header h1{

    font-size:32px;
}

.logout-btn{

    background:#ffffff;

    color:#008751;

    text-decoration:none;

    padding:12px 25px;

    border-radius:10px;

    font-weight:bold;
}

.logout-btn:hover{

    background:#f0f0f0;
}

/* =====================================
   MAIN CONTAINER
===================================== */

.dashboard-container{

    width:95%;

    max-width:1500px;

    margin:30px auto;
}

/* =====================================
   STATISTICS
===================================== */

.stats-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:20px;

    margin-bottom:30px;
}

.stat-card{

    background:#fff;

    padding:30px;

    border-radius:15px;

    text-align:center;

    box-shadow:
    0 8px 25px rgba(0,0,0,.08);
}

.stat-card h2{

    color:#008751;

    font-size:40px;

    margin-bottom:10px;
}

.stat-card p{

    font-size:16px;

    color:#666;
}

/* =====================================
   SEARCH AREA
===================================== */

.search-box{

    background:#fff;

    padding:25px;

    border-radius:15px;

    margin-bottom:25px;

    box-shadow:
    0 8px 25px rgba(0,0,0,.08);
}

.search-box form{

    display:flex;

    gap:15px;

    flex-wrap:wrap;
}

.search-box input{

    flex:1;

    min-width:250px;

    padding:15px;

    border:1px solid #ccc;

    border-radius:10px;
}

.search-box button{

    padding:15px 30px;

    border:none;

    border-radius:10px;

    background:#008751;

    color:#fff;

    font-weight:bold;

    cursor:pointer;
}

/* =====================================
   SORT BUTTONS
===================================== */

.sort-buttons{

    margin-bottom:25px;
}

.sort-buttons a{

    display:inline-block;

    margin:5px;

    padding:10px 20px;

    background:#008751;

    color:#fff;

    text-decoration:none;

    border-radius:8px;

    transition:.3s;
}

.sort-buttons a:hover{

    background:#006b3f;
}

/* =====================================
   TABLE
===================================== */

.table-wrapper{

    overflow-x:auto;

    background:#fff;

    border-radius:15px;

    box-shadow:
    0 8px 25px rgba(0,0,0,.08);
}

table{

    width:100%;

    border-collapse:collapse;
}

table th{

    background:#008751;

    color:#fff;

    padding:15px;

    text-align:left;
}

table td{

    padding:15px;

    border-bottom:1px solid #eee;
}

table tr:hover{

    background:#f8fff8;
}

/* =====================================
   ACTION BUTTONS
===================================== */

.view-btn{

    background:#008751;

    color:#fff;

    text-decoration:none;

    padding:8px 15px;

    border-radius:6px;

    display:inline-block;
}

.download-btn{

    background:#0056b3;

    color:#fff;

    text-decoration:none;

    padding:8px 15px;

    border-radius:6px;

    display:inline-block;

    margin-top:5px;
}

/* =====================================
   RECORD PAGE
===================================== */

.record-card{

    max-width:1200px;

    margin:30px auto;

    background:#fff;

    padding:40px;

    border-radius:20px;

    box-shadow:
    0 10px 40px rgba(0,0,0,.10);
}

.record-card h2{

    color:#008751;

    margin-bottom:25px;
}

.record-card p{

    margin-bottom:12px;

    font-size:16px;
}

/* =====================================
   SUCCESS MESSAGE
===================================== */

.success-box{

    background:#e8fff0;

    color:#006400;

    border-left:5px solid #006400;

    padding:15px;

    border-radius:8px;

    margin-bottom:20px;
}

/* =====================================
   RESPONSIVE
===================================== */

@media(max-width:768px){

.login-box{

    padding:30px;
}

.login-box h1{

    font-size:30px;
}

.dashboard-header{

    text-align:center;
}

.dashboard-header h1{

    margin-bottom:15px;
}

.search-box form{

    flex-direction:column;
}

.search-box input{

    width:100%;
}

.search-box button{

    width:100%;
}

table{

    font-size:14px;
}

}