﻿/* === General Layout === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f3f4f6;
    margin: 0;
    padding: 20px;
}

h1, h2 {
    color: #111827;
}

.container {
    max-width: 1100px;
    margin: auto;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* === Table Styling === */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

    .table th {
        background: #f9fafb;
        padding: 12px 16px;
        font-weight: 600;
        color: #374151;
        text-align: left;
        border-bottom: 2px solid #e5e7eb;
    }

    .table td {
        padding: 12px 16px;
        background: #fff;
        border-radius: 8px;
        vertical-align: middle;
    }

    .table tr:hover td {
        background: #f3f4f6;
    }

/* === Buttons === */
.btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    margin: 0 2px;
    color: #fff;
    transition: background 0.2s ease;
}

.btn-role {
    background: #2563eb;
}

    .btn-role:hover {
        background: #1d4ed8;
    }

.btn-pass {
    background: #f59e0b;
}

    .btn-pass:hover {
        background: #d97706;
    }

.btn-delete {
    background: #dc2626;
}

    .btn-delete:hover {
        background: #b91c1c;
    }

/* === Create User Section === */
.create-user-btn {
    display: inline-block;
    background: #10b981;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

    .create-user-btn:hover {
        background: #059669;
    }

/* Back to Dashboard Button */
/* ===============================
   Verify Page Header
================================ */
.verify-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    padding: 12px 24px; /* ⬅ increased side padding */
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ===============================
       Back to Dashboard Button
       (Secondary action)
    ================================ */
/* Back to Dashboard – Green theme */
.btn-back-dashboard {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #065f46 !important;
    background: linear-gradient(180deg, #ecfdf5, #d1fae5) !important;
    border: 1px solid #6ee7b7 !important;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(16,185,129,0.25);
    transition: all 0.2s ease;
}

    .btn-back-dashboard:hover {
        background: linear-gradient(180deg, #d1fae5, #a7f3d0) !important;
        border-color: #34d399 !important;
        color: #064e3b !important;
        box-shadow: 0 6px 16px rgba(16,185,129,0.45);
        transform: translateY(-1px);
    }

    .btn-back-dashboard:active {
        transform: translateY(0);
        box-shadow: 0 3px 8px rgba(16,185,129,0.25);
    }

/* ===============================
       Upload & Verify Button
       (Primary action)
    ================================ */
.btn-upload-verify {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a !important;
    background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
    border: 1px solid #93c5fd !important;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59,130,246,0.35);
    transition: all 0.2s ease;
}

    .btn-upload-verify:hover {
        background: linear-gradient(180deg, #dbeafe, #bfdbfe) !important;
        border-color: #60a5fa !important;
        color: #1e40af !important;
        box-shadow: 0 8px 20px rgba(59,130,246,0.55);
        transform: translateY(-1px);
    }

    .btn-upload-verify:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(59,130,246,0.35);
    }

.glass-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.4);
    font-size: 14px;
    animation: toastSlideIn 0.35s ease-out;
}

    .glass-toast.success {
        border-left: 5px solid #22c55e;
    }

    .glass-toast.error {
        border-left: 5px solid #ef4444;
    }

    .glass-toast.warning {
        border-left: 5px solid #f59e0b;
    }

.toast-ok-btn {
    margin-top: 10px;
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: rgba(255,255,255,0.8);
    cursor: pointer;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



#glassToast {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

    #glassToast #toastMessage {
        color: #1f2937 !important;
        font-weight: 500 !important;
        line-height: 1.4;
    }

/* ===============================
   Global Glass Toast (FINAL)
================================ */
#glassToast {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999999;
    min-width: 300px;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-left: 5px solid #22c55e;
    border-top: 1px solid rgba(255,255,255,0.6);
    border-right: 1px solid rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.4);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    animation: toastSlideIn 0.3s ease-out;
}

    /* States */
    #glassToast.success {
        border-left-color: #22c55e;
    }

    #glassToast.error {
        border-left-color: #ef4444;
    }

    #glassToast.warning {
        border-left-color: #f59e0b;
    }

#toastMessage {
    color: #1f2937;
    font-weight: 500;
    line-height: 1.4;
}

/* OK button */
.toast-ok-btn {
    margin-top: 10px;
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

    .toast-ok-btn:hover {
        background: #f3f4f6;
    }

/* Animation */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

