body {
    font-family: "Poppins", sans-serif;
    background: #f5f5f5;
    margin: 0;
}

.header {
    width: 90%;
    max-width: 1100px;
    margin: 20px auto 0 auto;

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 20px;

    background: white;

    border-radius: 20px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.title {
    margin: 0;
    font-size: 28px;
}

.form-container {

    background:
        rgba(255, 255, 255, .25);

    backdrop-filter:
        blur(12px);

    width:
        calc(100vw - 50px);

    max-width:
        none;

    margin:
        25px auto;

    padding:
        25px;

    border-radius:
        20px;

    box-shadow:
        0 8px 32px rgba(0, 0, 0, .2);

    box-sizing:
        border-box;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

input,
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.input-error {
    border: 2px solid red;
    background: #ffeaea;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
}

.note {
    font-size: 12px;
    color: #777;
    font-style: italic;
}

.error-message {
    color: red;
    font-size: 12px;
}

button {
    font-family: Poppins;
    font-size: 16px;
    padding: 10px 20px;
    background: navy;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    border-color: #6db3ff;
}

button:disabled {
    background: gray;
    cursor: not-allowed;

}

button:disabled:hover {
    background: gray;
    transform: none;

}



button:hover {
    background: #6db3ff;
    color: white;
    border-color: #007bff;
    transform: scale(1.05);
}


table {

    border-collapse: collapse;

    min-width: 1400px;

    width: max-content;

    margin: 0;
}

th {

    font-family: Poppins;

    background: #3f3f3f;

    color: white;

    padding: 12px;

    position: sticky;
    top: 0;

    z-index: 10;

    white-space: nowrap;
}

td {

    padding: 10px;

    text-align: center;

    white-space: nowrap;
}

tr:nth-child(even) {
    background: #f2f2f2;
}

.table-wrapper {

    width: 100%;

    max-width: 100%;

    overflow-x: auto;
    overflow-y: auto;

    max-height: 65vh;

    border-radius: 18px;

    border: 1px solid #ddd;

    background: white;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, .08);

}


.search-container {
    display: flex;
    gap: 15px;
    align-items: end;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.search-box {
    display: flex;
    flex-direction: column;
}

.search-box label {
    margin-bottom: 5px;
    font-weight: 600;
}

.search-box select {
    min-width: 180px;
}

.search-btn {
    height: 42px;
}



/* ================= EXPORT MODAL ================= */

.export-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.export-card {
    width: 600px;
    max-width: 95%;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.export-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.export-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ================= TOAST ================= */

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    opacity: 0;
    transition: 0.3s;
    z-index: 9999;
}


.toast-notification.show {
    opacity: 1;
}

#exportBtn {
    display: block;
    margin: 20px auto;
}



/* ================= ZSB FIELD ================= */

.zsb-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.zsb-prefix {
    height: 44px;

    min-width: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f1f1;

    border: 1px solid #ccc;
    border-right: none;

    border-radius: 8px 0 0 8px;

    font-size: 18px;
    font-weight: 500;

    box-sizing: border-box;
}

.zsb-input {
    height: 44px;

    flex: 1;

    border-radius: 0 8px 8px 0 !important;

    box-sizing: border-box;
}

#zsbError {
    display: block;
    width: 100%;
    margin-top: 6px;

    color: red;
    font-size: 12px;

    clear: both;
}

.zsb-input-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#counterPanel {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#counterPanel .switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

#counterPanel .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#counterPanel .sliderToggle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: red;

    border-radius: 30px;

    transition: 0.3s;
}

#counterPanel .sliderToggle::before {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    background: white;

    border-radius: 50%;

    transition: 0.3s;
}

#counterPanel input:checked+.sliderToggle {
    background: green;
}

#counterPanel input:checked+.sliderToggle::before {
    transform: translateX(20px);
}

/* ================= SUBMIT OVERLAY ================= */

.submit-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    display: none;

    justify-content: center;
    align-items: center;

    z-index: 99999;
}

.submit-box {
    width: 350px;

    background: white;

    border-radius: 20px;

    padding: 30px;

    text-align: center;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.loader {
    width: 60px;
    height: 60px;

    border: 6px solid #eee;
    border-top: 6px solid #1d4ed8;

    border-radius: 50%;

    margin: 0 auto 20px auto;

    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ================= TOKEN ================= */

.token-main-wrapper {
    text-align: center;
}

.token-card {

    width: 400px;
    max-width: 95%;

    margin: 20px auto;

    background: white;

    border: 2px solid #000;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ================= TOP ================= */

.token-top {
    display: flex;

    border-bottom: 2px solid #000;
}

.token-logo {
    width: 100px;
    height: 100px;

    object-fit: contain;

    border-right: 2px solid #000;

    padding: 10px;
}

.token-top-right {
    flex: 1;

    padding: 24px;

    text-align: center;
}

.visit-text {
    margin-top: 0;
    margin-bottom: 12px;

    font-size: 16px;
}

/* ================= COUNTER ================= */

.token-counter {
    border-bottom: 2px solid #000;

    padding: 15px;

    font-size: 24px;

    text-align: center;
}

/* ================= DETAILS ================= */

.token-details {
    padding: 20px;

    border-bottom: 2px solid #000;

    text-align: left;

    font-size: 22px;

    line-height: 1.8;
    pointer-events: none;
}

.token-details b {
    font-weight: 700;
}

/* ================= QR ================= */

.token-bottom {
    display: flex;
}

.qr-box {
    flex: 1;

    padding: 15px;

    text-align: center;
}

.qr-box:first-child {
    border-right: 2px solid #000;
}

.qr-img {
    width: 120px;
    height: 120px;

    object-fit: contain;
}

.qr-text {
    margin-top: 10px;

    font-size: 18px;
}

/* ================= BUTTON ================= */

.download-btn {
    margin-top: 20px;
}

/* ================= ROW SELECTION ================= */

#tableBody tr {

    cursor: pointer;

    transition: 0.2s ease;
}

#tableBody tr:hover {

    background: #eef5ff !important;
}

#tableBody tr.selected-row {

    background: #dbeafe !important;

    border-left:
        6px solid #2563eb;
}

#tableBody tr.completed-row {

    background: #ecfdf5;
}


/* ==========================================
   Dashboard Navigation
========================================== */

.dashboard-tabs {

    display: flex;

    gap: 12px;

    margin: 25px 0;

    border-bottom: 2px solid #ddd;

    padding-bottom: 12px;

}

.dashboard-tab {

    padding: 10px 24px;

    border: none;

    border-radius: 30px;

    cursor: pointer;

    background: #f0f0f0;

    font-weight: bold;

    transition: .25s;

}

.dashboard-tab.active {

    background: #1e5cb3;

    color: white;

}

.dashboard-tab:hover {

    background: #2c72d3;

    color: white;

}

/* ==========================================
Assigned Counter
========================================== */

.assigned-counter {

    background: #eef5ff;

    border-left: 5px solid #1e5cb3;

    padding: 12px 20px;

    margin-bottom: 20px;

    font-size: 18px;

    font-weight: bold;

    border-radius: 8px;

}

/* ==========================================
User Management
========================================== */

.user-management-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}

.user-search {

    margin-bottom: 20px;

}

.user-search input {

    width: 350px;

    padding: 10px;

    border-radius: 8px;

    border: 1px solid #ccc;

    font-size: 16px;

}

#createUserBtn {

    background: #1e5cb3;

    color: white;

    padding: 10px 18px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;

}

#createUserBtn:hover {

    background: #17498d;

}

.logout-btn {

    background: #be2a1f;

    color: white;

    padding: 10px 20px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

}


/* =======================================================
User Management
======================================================= */

.user-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

}

#createUserBtn {

    background: #0057b8;

    color: white;

    border: none;

    padding: 12px 22px;

    border-radius: 10px;

    font-weight: bold;

    cursor: pointer;

}

/* ==============================
HEADER
============================== */
.dashboard-header {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 110px;

    margin-bottom: 30px;

}

.header-left{

    display:flex;

    align-items:center;

}



.dashboard-logo {

    width: 90px;

    height: 90px;

    object-fit: contain;

}

.dashboard-title{

    margin:0;

    font-size:44px;

    font-weight:700;

    color:#111;

}

.dashboard-subtitle{

    margin-top:6px;

    color:#777;

    font-size:18px;

}

/* ==============================
NAVIGATION
============================== */

.admin-navigation {

    display: flex;

    justify-content: center;

    gap: 15px;

    margin-bottom: 25px;

}

.nav-pill {

    padding: 12px 34px;

    border-radius: 40px;

    border: 2px solid #d9d9d9;

    background: rgb(147, 196, 241);

    font-weight: 600;

    font-size: 17px;

    cursor: pointer;

    transition: .25s;

}

.nav-pill:hover {

    border-color: #0057b8;

    color: #0057b8;

}

.nav-pill.active {

    background: #0057b8;

    color: white;

    border-color: #000000;

}

/* ==============================
ASSIGNED COUNTER
============================== */

.assigned-counter-bar {

    display: flex;

    justify-content: center;

    gap: 12px;

    margin-bottom: 20px;

    font-size: 18px;

    font-weight: 600;

    color: #0057b8;

}

/* ==============================
USER TOOLBAR
============================== */

.user-toolbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}

.user-toolbar input {

    width: 350px;

}

.modal-overlay{

position:fixed;

top:0;
left:0;

width:100%;
height:100%;

background:rgba(0,0,0,.45);

display:flex;

justify-content:center;

align-items:center;

z-index:9999;

}

.modal-card{

background:#fff;

width:430px;

padding:28px;

border-radius:12px;

box-shadow:0 15px 40px rgba(0,0,0,.2);

}

.modal-card h2{

margin-top:0;

margin-bottom:20px;

text-align:center;

}

.form-group{

margin-bottom:18px;

display:flex;

flex-direction:column;

}

.form-group label{

margin-bottom:6px;

font-weight:600;

}

.form-group input,
.form-group select{

padding:10px;

border:1px solid #ccc;

border-radius:8px;

font-size:15px;

}

.modal-actions{

display:flex;

justify-content:flex-end;

gap:10px;

margin-top:20px;

}