*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

body{
    background:#f8fafc;
}

.container{
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
}

.header{
    margin-bottom:40px;
}

.header h1{
    font-size:32px;
    color:#0f172a;
}

.header p{
    color:#64748b;
    margin-top:8px;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.card{
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding:25px;
    text-decoration:none;
    color:#0f172a;
    transition:0.3s;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
}

.card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 25px rgba(0,0,0,0.10);
}

.card h3{
    margin-bottom:10px;
}

.card p{
    color:#64748b;
    line-height:1.6;
}

.logout-card{
    border-color:#ef4444;
}

.admin-navbar{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    padding:20px;
    background:#ffffff;
    border-bottom:1px solid #e5e7eb;
    flex-wrap:wrap;
}

.nav-btn{
    display:inline-block;
    padding:10px 18px;
    background:#2563eb;
    color:#ffffff;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition:0.3s;
}

.nav-btn:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

.logout-btn{
    background:#dc2626;
}

.logout-btn:hover{
    background:#b91c1c;
}

/* =========================
   LOGIN PAGE
========================= */

.login-page{
    background:#f8fafc;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.login-container{
    width:100%;
    max-width:420px;
    background:#ffffff;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    border:1px solid #e2e8f0;
}

.login-logo{
    text-align:center;
    margin-bottom:25px;
}

.login-logo h1{
    color:#2563eb;
    font-size:28px;
    margin-bottom:5px;
}

.login-logo p{
    color:#64748b;
    font-size:14px;
}

.login-form{
    margin-top:20px;
}

.login-form input{
    width:100%;
    padding:14px;
    margin-bottom:15px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    font-size:15px;
    outline:none;
}

.login-form input:focus{
    border-color:#2563eb;
}

.login-btn{
    width:100%;
    padding:14px;
    border:none;
    border-radius:10px;
    background:#2563eb;
    color:white;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.login-btn:hover{
    background:#1d4ed8;
}

.verify-btn{
    display:block;
    width:100%;
    text-align:center;
    padding:14px;
    margin-top:12px;
    border-radius:10px;
    text-decoration:none;
    background:#16a34a;
    color:white;
    font-size:16px;
    font-weight:600;
    transition:0.3s;
}

.verify-btn:hover{
    background:#15803d;
}

.error-message{
    background:#fee2e2;
    color:#dc2626;
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
    text-align:center;
}

.login-footer{
    margin-top:20px;
    text-align:center;
    color:#64748b;
    font-size:13px;
}




/* =========================
   VERIFY CERTIFICATE PAGE
========================= */

.verify-page{
    background:#f8fafc;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.verify-container{
    width:100%;
    max-width:650px;
    background:#ffffff;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    border:1px solid #e2e8f0;
}

.verify-header{
    text-align:center;
    margin-bottom:30px;
}

.verify-header h1{
    color:#2563eb;
    font-size:30px;
    margin-bottom:10px;
}

.verify-header p{
    color:#64748b;
}

.verify-form input{
    width:100%;
    padding:15px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    font-size:16px;
    margin-bottom:15px;
    outline:none;
}

.verify-form input:focus{
    border-color:#2563eb;
}

.verify-submit-btn{
    width:100%;
    padding:15px;
    border:none;
    border-radius:10px;
    background:#2563eb;
    color:white;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.verify-submit-btn:hover{
    background:#1d4ed8;
}

.success-box{
    margin-top:25px;
    background:#dcfce7;
    border:1px solid #22c55e;
    padding:20px;
    border-radius:12px;
}

.success-box h3{
    color:#15803d;
    margin-bottom:15px;
}

.success-box p{
    margin-bottom:8px;
    color:#14532d;
}

.error-box{
    margin-top:25px;
    background:#fee2e2;
    border:1px solid #ef4444;
    padding:20px;
    border-radius:12px;
    text-align:center;
}

.error-box h3{
    color:#dc2626;
}

.back-btn{
    display:block;
    margin-top:20px;
    text-align:center;
    text-decoration:none;
    color:#2563eb;
    font-weight:600;
}

.back-btn:hover{
    text-decoration:underline;
}


/* =========================
   LIST PAGE
========================= */

/* CERTIFICATE LIST */

.table-container{
    background:#ffffff;
    border-radius:16px;
    padding:20px;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
    overflow-x:auto;
}

.table-container table{
    width:100%;
    border-collapse:collapse;
}

.table-container th{
    background:#2563eb;
    color:#ffffff;
    padding:14px;
    text-align:left;
}

.table-container td{
    padding:14px;
    border-bottom:1px solid #e5e7eb;
}

.table-container tr:hover{
    background:#f8fafc;
}

.action-buttons{
    min-width:220px;
}

.action-buttons a{
    display:inline-block;
    padding:8px 12px;
    margin:2px;
    border-radius:6px;
    text-decoration:none;
    color:#fff;
    font-size:14px;
    font-weight:600;
}

.pdf-btn{
    background:#2563eb;
}

.edit-btn{
    background:#16a34a;
}

.delete-btn{
    background:#dc2626;
}

.pdf-btn:hover{
    background:#1d4ed8;
}

.edit-btn:hover{
    background:#15803d;
}

.delete-btn:hover{
    background:#b91c1c;
}

form{
    max-width:700px;
    margin:auto;
}

form input,
form select{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #d1d5db;
    border-radius:8px;
}

form button{
    background:#2563eb;
    color:white;
    border:none;
    padding:12px 20px;
    border-radius:8px;
    cursor:pointer;
}

form button:hover{
    background:#1d4ed8;
}