/* ===== GLOBAL RESET ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: #f6f8fb;
    color: #111827;
}


/* ===== LAYOUT ===== */

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}


/* ===== CARD ===== */

.card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}


/* ===== STATS GRID ===== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card h4 {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.stat-card p {
    font-size: 26px;
    font-weight: 700;
}

.stat-card.highlight {
    border-left: 4px solid #2563eb;
}


/* ===== BUTTONS ===== */

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #1e4ed8;
}

.btn-secondary {
    background: #e5e7eb;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}


/* ===== TABLE ===== */

.table-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.modern-table th {
    text-align: left;
    padding: 14px;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
}

.modern-table td {
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.modern-table tr:hover {
    background: #f9fafb;
}


/* ===== STATUS BADGES ===== */

.status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status.pending {
    background: #fef3c7;
    color: #92400e;
}

.status.verified {
    background: #dcfce7;
    color: #166534;
}

.status.inactive {
    background: #f3f4f6;
    color: #374151;
}


/* ===== PAGINATION ===== */

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}


/* ===== FORM ===== */

.form-card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

input,
select,
textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
}


/* ===== INFO CARD ===== */

.info-card {
    background: #eef2ff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}


/* ===== TABS ===== */

.tabs {
    margin-bottom: 16px;
}

.tabs button {
    padding: 10px 16px;
    margin-right: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
}

.tabs button.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}


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

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 16px;
    padding: 28px;
    width: 420px;
    max-width: 92%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}


/* ===== CAMERA ===== */

video,
#preview {
    width: 100%;
    border-radius: 12px;
    background: black;
}

.camera-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}


/* ===== KYC IMAGE ===== */

.kyc-image {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    margin-top: 10px;
}


/* ===== NOTES ===== */

.notes {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 8px;
    white-space: pre-wrap;
}

.dashboard-container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.dashboard-title {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.table-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f5f5f5;
    padding: 10px;
    text-align: left;
}

.admin-table td {
    padding: 10px;
    border-top: 1px solid #eee;
}

.admin-table tbody tr:nth-child(even) {
    background: #fafafa;
}


/* Buttons */

.btn-primary {
    background: #1e6fff;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-secondary {
    background: #eee;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-small {
    background: #1e6fff;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
}


/* Status badge */

.status-badge {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
}

.status-badge.active {
    background: #e6f7ec;
    color: #2e7d32;
}

.status-badge.inactive {
    background: #fdecea;
    color: #c62828;
}


/* Pagination */

.pagination {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
}


/* Modal */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 350px;
}

.modal-box input,
.modal-box select {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
}

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