*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}

body{
    background:#f5f7fb;
}

.admin-header{
    background:#0d1b4c;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 30px;
}

.admin-logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.admin-logo img{
    width:60px;
    height:60px;
    object-fit:contain;
}

.admin-logo h2{
    font-size:22px;
}

.admin-logo p{
    font-size:13px;
    color:#ddd;
}

.back-btn{
    text-decoration:none;
    background:#0d6efd;
    color:#fff;
    padding:10px 18px;
    border-radius:6px;
}

.page-title{
    background:linear-gradient(90deg,#071952,#0d6efd);
    color:#fff;
    text-align:center;
    padding:35px 20px;
}

.page-title h1{
    font-size:34px;
}

.dashboard{
    max-width:1200px;
    margin:30px auto;
    padding:20px;
}

.search-box{
    margin-bottom:20px;
}

.search-box input{
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
}

.members-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:20px;
}

.member-card{
    background:#fff;
    border-radius:12px;
    padding:20px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.member-card img{
    width:100px;
    height:100px;
    border-radius:50%;
    object-fit:cover;
    display:block;
    margin:auto;
}

.member-card h3{
    text-align:center;
    margin:15px 0 10px;
}

.member-card p{
    margin:5px 0;
}

.generate-btn{
    width:100%;
    margin-top:15px;
    padding:10px;
    border:none;
    border-radius:8px;
    background:#0d6efd;
    color:#fff;
    cursor:pointer;
}

.generate-btn:hover{
    background:#084298;
}

@media(max-width:768px){

    .admin-header{
        flex-direction:column;
        gap:15px;
    }

    .page-title h1{
        font-size:26px;
    }

}

.table-box{
    overflow-x:auto;
    background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
}

table{
    width:100%;
    border-collapse:collapse;
}

th,td{
    padding:12px;
    text-align:center;
    border-bottom:1px solid #ddd;
}

thead{
    background:#0d6efd;
    color:#fff;
}

td img{
    width:60px;
    height:60px;
    object-fit:cover;
    border-radius:50%;
    border:2px solid #0d6efd;
}

.view-btn,
.print-btn{
    padding:8px 12px;
    margin:2px;
    border:none;
    border-radius:6px;
    color:#fff;
    cursor:pointer;
}

.view-btn{
    background:#0d6efd;
}

.print-btn{
    background:#198754;
}


/* =========================================
   MEMBER PDF DOWNLOAD BUTTON
   ========================================= */

.download-box{
    display:block !important;
    width:100% !important;
    margin:18px 0 !important;
    text-align:left !important;
}

#downloadPDFBtn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;

    width:auto !important;
    min-width:220px !important;

    margin:0 !important;
    padding:12px 22px !important;

    background:linear-gradient(
        135deg,
        #0b7a35,
        #16a34a
    ) !important;

    color:#ffffff !important;

    border:none !important;
    border-radius:8px !important;

    font-family:Arial,Helvetica,sans-serif !important;
    font-size:15px !important;
    font-weight:700 !important;

    cursor:pointer !important;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.18) !important;

    transition:all 0.2s ease !important;
}

#downloadPDFBtn:hover{
    background:linear-gradient(
        135deg,
        #095c29,
        #12823d
    ) !important;

    transform:translateY(-2px) !important;

    box-shadow:
        0 6px 14px rgba(0,0,0,0.25) !important;
}

#downloadPDFBtn:active{
    transform:translateY(0) !important;

    box-shadow:
        0 3px 7px rgba(0,0,0,0.18) !important;
}

#downloadPDFBtn:disabled{
    opacity:0.6 !important;
    cursor:not-allowed !important;
    transform:none !important;
}


/* =========================================
   MOBILE PDF BUTTON
   ========================================= */

@media(max-width:768px){

    .download-box{
        text-align:center !important;
    }

    #downloadPDFBtn{
        width:100% !important;
        min-width:0 !important;
    }

}