/* =========================================
   GLOBAL RESET & BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background: #F5F7FA;
    color: #1B2735;
    min-height: 100vh;
    /* display: flex; */
    /* flex-direction: column; */
}

/* =========================================
   MAIN CONTAINER (Signup, Login, Upload, User Data)
========================================= */
.container {
    background: #FFFFFF;
    max-width: 900px;
    width: 90%;
    margin: 45px auto;
    padding: 35px 30px;
    border-radius: 14px;
    box-shadow: 0px 6px 25px rgba(0,0,0,0.08);
}

.container h2 {
    font-size: 26px;
    font-weight: 600;
    color: #0A4CA3;
    margin-bottom: 20px;
    text-align: center;
}

/* =========================================
   FORM ELEMENTS
========================================= */
form {
    width: 100%;
}

label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #C7D3E1;
    border-radius: 6px;
    font-size: 14px;
    background: #FAFCFE;
    margin-bottom: 18px;
    outline: none;
    transition: 0.25s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #0A4CA3;
    box-shadow: 0 0 6px rgba(10,76,163,0.3);
}

/* =========================================
   BUTTONS
========================================= */
.btn,
.btn1,
.btn2 {
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.25s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* Primary */
.btn1,
.btn {
    background: #0A4CA3;
    color: white;
}

.btn1:hover,
.btn:hover {
    background: #0F6FEA;
}

/* Secondary */
.btn2 {
    background: #1B2735;
    color: white;
}

.btn2:hover {
    background: #2F3A4C;
}

/* Full-width button (Signup/Login) */
button[type="submit"] {
    /* width: 100%; */
}

/* =========================================
   TABLES (User Data)
========================================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

th,
td {
    padding: 14px;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid #EEF2F7;
}

th {
    background: #F0F5FB;
    font-weight: 600;
    color: #0A4CA3;
}

/* Scroll container */
.table-container {
    overflow-x: auto;
}

/* =========================================
   PROGRESS BAR (Upload Page)
========================================= */
.progress {
    background: #E4E9F2;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    font-size: 14px;
    font-weight: 600;
    transition: width 0.3s ease-in-out;
}

/* =========================================
   MODAL / POPUP (User Data Edit)
========================================= */
#modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index: 9998;
}

#editPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 95%;
    max-width: 520px;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0px 8px 30px rgba(0,0,0,0.15);
    display: none;
    z-index: 9999;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #0A4CA3 !important;
    font-weight: bold;
}

.close-btn:hover {
    color: #0F6FEA !important;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
    .container {
        padding: 25px 20px;
        margin: 25px auto;
    }

    table th,
    table td {
        font-size: 12px;
        padding: 10px;
    }

    .btn,
    .btn1,
    .btn2 {
        width: 100%;
        margin-bottom: 10px;
    }
}






/* ////////////// */


/* =========================================
   GLOBAL RESET & BASE UI
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* =========================================
   MAIN CONTAINER (ALL PAGES)
========================================= */
.container {
    background: #FFFFFF;
    max-width: 900px;
    width: 90%;
    margin: 40px auto;
    padding: 32px 28px;
    border-radius: 14px;
    box-shadow: 0px 5px 18px rgba(0,0,0,0.08);
}

.container h2 {
    font-size: 26px;
    font-weight: 600;
    color: #0A4CA3;
    margin-bottom: 20px;
    text-align: center;
}

/* =========================================
   HEADINGS & TEXT
========================================= */
h3, h4 {
    color: #0A4CA3;
    font-weight: 600;
    margin-bottom: 12px;
}

/* =========================================
   FORM ELEMENTS
========================================= */
form {
    width: 100%;
}

label {
    font-size: 14px;
    font-weight: 500;
    margin: 10px 0 4px;
    display: block;
}

input, select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #D9DCE2;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
    background: #FAFBFC;
    transition: 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: #0A4CA3;
    outline: none;
    box-shadow: 0 0 4px rgba(10,76,163,0.3);
}

/* =========================================
   BUTTONS
========================================= */
.btn, .btn1, .btn2 {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: 0.25s;
}

/* Primary Blue */
.btn, .btn1 {
    background: #0A4CA3;
    color: #fff;
}

.btn:hover, .btn1:hover {
    background: #08397A;
}

/* Dark Secondary */
.btn2 {
    background: #2E3A47;
    color: #fff;
}

.btn2:hover {
    background: #1F2A33;
}

/* Danger (Delete) */
/* .btn-danger {
    background: #D84848;
    color: #fff;
} */

/* .btn-danger:hover {
    background: #B83838;
} */

/* Full Width on Mobile */
@media (max-width: 600px) {
    .btn, .btn2, .btn1 {
        width: 100%;
        margin-top: 6px;
    }
}

/* =========================================
   TABLES (Admin / User Data / Roles / Users)
========================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #fff;
    font-size: 14px;
}

th {
    background: #0A4CA3;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 500;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #E5E7EB;
}

tr:hover {
    background: #F5F9FF;
}

/* Scrollable Table Wrapper */
.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
}

/* Checkbox column */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* =========================================
   ALERT / INFO BOXES
========================================= */
.alert {
    border-radius: 10px;
    padding: 18px;
    margin-top: 18px;
    font-size: 14px;
}

.alert-info {
    background: #E8F3FF;
    border-left: 5px solid #0A4CA3;
}

.alert-success {
    background: #E9FAEF;
    border-left: 5px solid #18A35A;
}

/* =========================================
   POPUPS / MODALS
========================================= */
#modalOverlay, #overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index: 999;
}

.popup, #editPopup, .modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 95%;
    max-width: 480px;
    background: #fff;
    padding: 26px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn, .close {
    position: absolute;
    top: 12px; right: 14px;
    font-size: 20px;
    color: #D84848;
    cursor: pointer;
    font-weight: bold;
}

.close-btn:hover {
    color: #B83838;
}

/* =========================================
   SIDEBAR (All Profiles Page)
========================================= */
.sidebar {
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.06);
    width: 250px;
    height: fit-content;
}

.sidebar h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.sidebar label {
    margin-bottom: 8px;
    font-size: 13px;
    cursor: pointer;
}

/* Responsive Sidebar */
@media (max-width: 900px) {
    .page-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}

/* =========================================
   PAGE WRAPPER (For Alluserdata.php)
========================================= */
.page-wrapper {
    display: flex;
    gap: 24px;
    padding: 20px;
}

/* =========================================
   FILTER BAR
========================================= */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

/* =========================================
   PROGRESS BAR (Upload Page)
========================================= */
.progress {
    background: #E4E8EF;
    border-radius: 8px;
}

.progress-bar {
    border-radius: 8px;
    font-weight: 600;
}









/* /////////////////////////////// */