@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background: linear-gradient(135deg,#0f172a,#1e293b);
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* MAIN CARD */
.container{
    width:95%;
    max-width:520px;
    background:#ffffff;
    border-radius:14px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

/* TITLE */
h2{
    text-align:center;
    margin-bottom:20px;
    font-weight:600;
    color:#111827;
}

/* INPUT */
input, select{
    width:100%;
    padding:12px;
    border-radius:8px;
    border:1px solid #ddd;
    margin-bottom:12px;
    font-size:14px;
}

/* BUTTON */
button{
    width:100%;
    padding:12px;
    border:none;
    border-radius:8px;
    background:#16a34a;
    color:#fff;
    font-weight:500;
    cursor:pointer;
    transition:0.3s;
}

button:hover{
    background:#15803d;
}

/* RESULT BOX */
.result{
    margin-top:20px;
    padding:15px;
    background:#f9fafb;
    border-radius:10px;
}

/* STATUS */
.badge{
    padding:4px 10px;
    border-radius:20px;
    font-size:12px;
}

.pending{
    background:#facc15;
}

.completed{
    background:#22c55e;
    color:#fff;
}

/* ERROR */
.error{
    color:#ef4444;
    margin-top:10px;
}

/* DOWNLOAD */
.download{
    display:inline-block;
    margin-top:12px;
    padding:10px 14px;
    background:#16a34a;
    color:#fff;
    border-radius:6px;
    text-decoration:none;
}

/* TABLE PAGE */
.table-container{
    max-width:1000px;
}

table{
    width:100%;
    border-collapse:collapse;
}

th{
    background:#111827;
    color:#fff;
    padding:12px;
}

td{
    padding:12px;
    border-bottom:1px solid #eee;
    text-align:center;
}

tr:hover{
    background:#f3f4f6;
}

.btn{
    padding:6px 10px;
    background:#16a34a;
    color:#fff;
    border-radius:5px;
    text-decoration:none;
}

/* MOBILE */
@media(max-width:600px){
    .container{
        padding:20px;
    }
}

/* SEARCH BOX */
form input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* PAGINATION */
.pagination a {
    display:inline-block;
    margin:5px;
    padding:6px 12px;
    background:#111827;
    color:#fff;
    border-radius:6px;
    text-decoration:none;
}

/* ===== PREMIUM CERTIFICATE ===== */

.certificate {
    width: 1122px;
    margin: auto;
    background: #fff;
    padding: 40px;
    border: 12px solid #16a34a;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

/* INNER BORDER */
.certificate::before {
    pointer-events: none;
}

/* TITLE */
.certificate h1 {
    font-size: 42px;
    color: #111827;
    margin-bottom: 10px;
}

/* SUB TEXT */
.certificate p {
    color: #444;
    font-size: 16px;
    margin: 8px 0;
}

/* NAME */
.certificate .name {
    font-size: 30px;
    font-weight: 600;
    color: #16a34a;
    margin: 15px 0;
}

/* COURSE */
.certificate .course {
    font-size: 22px;
    font-weight: 500;
    margin: 10px 0;
}

/* FOOTER */
.certificate-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    font-size: 14px;
}

.signature {
    text-align: center;
}

.signature-line {
    width: 150px;
    border-top: 2px solid #000;
    margin: 10px auto;
}

/* PRINT FIX */
@media print {
    body {
        background: #fff !important;
    }
    button {
        display: none;
    }
}

/* STUDENT PHOTO */
.student-photo {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #16a34a;
}

.action-box{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
}

/* SAME SIZE BUTTONS */
.action-box .btn{
    min-width:100px;
    text-align:center;
}

/* COLORS */
.download-btn{
    background:#2563eb;
}

.delete-btn{
    background:#dc2626;
}