/* ============================================================
   OFFICIAL PAGE STYLES - drSathi Admin Panel
   ============================================================ */

:root {
    --primary: #0cb8b6;
    --primary-dark: #0a9e9c;
    --dark: #1e293b;
    --bg: #f1f5f9;
    --sidebar-bg: #161d27;
    --blue-btn: #0ea5e9;
    --red: #ef4444;
    --green: #22c55e;
    --orange: #f59e0b;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    min-height: 100vh;
}

/* ============================================================ */
/* LOGIN OVERLAY */
/* ============================================================ */
.login-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 40px 35px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: fadeInUp 0.5s ease-out;
}

.login-card .login-badge {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), #0d9488);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    color: white;
}

.login-card h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.login-card h2 span {
    color: var(--primary);
}

.login-card p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 25px;
}

.login-card .form-group {
    margin-bottom: 18px;
    text-align: left;
}

.login-card .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 5px;
}

.login-card .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: 0.3s;
    background: #f8fafc;
}

.login-card .form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(12,184,182,0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), #0d9488);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12,184,182,0.3);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================ */
/* ADMIN LAYOUT */
/* ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ============================================================ */
/* SIDEBAR */
/* ============================================================ */
.sidebar {
    width: 280px;
    min-width: 280px;
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: 0.3s;
    z-index: 1500;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 28px 24px;
    font-size: 22px;
    font-weight: 800;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-brand span {
    color: var(--primary);
}

.menu-list {
    list-style: none;
    padding: 12px 10px;
    flex: 1;
}

.menu-item {
    margin-bottom: 2px;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    transition: 0.3s;
}

.menu-item a i {
    width: 20px;
    font-size: 16px;
}

.menu-item a:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.menu-item a.active {
    background: rgba(12,184,182,0.12);
    color: var(--primary);
}

.menu-item a.upload-gate-link {
    background: rgba(12,184,182,0.08);
    color: var(--primary);
    border: 1px solid rgba(12,184,182,0.15);
}

.menu-item-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 12px 16px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: #f87171;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
    margin-top: auto;
}

.logout-btn:hover {
    background: rgba(239,68,68,0.1);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1400;
}

/* ============================================================ */
/* MAIN WORKSPACE */
/* ============================================================ */
.main-workspace {
    flex: 1;
    padding: 20px 30px 40px;
    overflow-y: auto;
    min-height: 100vh;
}

.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.welcome-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-text .mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

.welcome-text h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}

.welcome-text p {
    color: #94a3b8;
    font-size: 13px;
}

/* ============================================================ */
/* STATS GRID */
/* ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px 24px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.02);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.stat-card .stat-info h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.stat-card .stat-info p {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.stat-card .stat-icon.docs { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-card .stat-icon.hosps { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.stat-card .stat-icon.meds { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stat-card .stat-icon.diags { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* ============================================================ */
/* HUB SEARCH */
/* ============================================================ */
.hub-search-wrapper {
    background: white;
    padding: 25px 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.hub-search-wrapper h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 18px;
}

.hub-search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hub-search-form .hub-select {
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    min-width: 180px;
}

.hub-search-form .hub-input-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.hub-search-form .hub-input-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.hub-search-form .hub-input-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: 0.3s;
}

.hub-search-form .hub-input-box input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(12,184,182,0.1);
}

.hub-search-btn {
    padding: 12px 28px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-search-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ============================================================ */
/* SECTION BOX & TABLE */
/* ============================================================ */
.section-box {
    background: white;
    border-radius: var(--radius);
    padding: 24px 24px 30px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.control-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.control-header-wrapper .title-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.control-header-wrapper .search-section {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.control-header-wrapper .search-section .search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
}

.control-header-wrapper .search-section input {
    padding: 10px 16px 10px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    min-width: 220px;
    transition: 0.3s;
}

.control-header-wrapper .search-section input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(12,184,182,0.1);
}

.action-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.export-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-btn.excel {
    background: #d1fae5;
    color: #065f46;
}

.export-btn.excel:hover {
    background: #a7f3d0;
}

.export-btn.pdf {
    background: #fef3c7;
    color: #92400e;
}

.export-btn.pdf:hover {
    background: #fde68a;
}

/* ============================================================ */
/* DATA TABLE */
/* ============================================================ */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #f8fafc;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.data-table .id-td {
    font-weight: 700;
    color: #94a3b8;
    font-size: 13px;
}

.data-table .name-badge {
    font-weight: 600;
    color: var(--dark);
}

.data-table .name-badge.hosp { color: #7c3aed; }
.data-table .name-badge.med { color: #16a34a; }
.data-table .name-badge.diag { color: #d97706; }

.data-table .msg-cell b {
    display: block;
    font-size: 13px;
    color: var(--dark);
}

.data-table .msg-cell p {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.data-table .no-data {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* ============================================================ */
/* ACTION CELL */
/* ============================================================ */
.action-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.view-card-btn {
    padding: 6px 14px;
    background: #e0f2fe;
    color: #0369a1;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-card-btn:hover {
    background: #bae6fd;
}

.edit-btn {
    padding: 6px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 8px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edit-btn:hover {
    background: #fde68a;
}

.trash-btn {
    padding: 6px 12px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trash-btn:hover {
    background: #fecaca;
}

/* ============================================================ */
/* CHAMBERS VIEW BUTTON */
/* ============================================================ */
.chambers-view-btn {
    padding: 6px 14px;
    background: #d1fae5;
    color: #065f46;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chambers-view-btn:hover {
    background: #a7f3d0;
}

/* ============================================================ */
/* MODERN MODAL */
/* ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modern-card-modal {
    background: white;
    border-radius: 24px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease-out;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modern-header {
    background: linear-gradient(135deg, var(--dark), #0f172a);
    padding: 20px 25px;
    color: white;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modern-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modern-header h3 i {
    margin-right: 10px;
}

.close-modal-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fafafa;
    border-radius: 0 0 24px 24px;
}

.modal-footer-btn {
    padding: 10px 24px;
    background: #e2e8f0;
    color: #475569;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-footer-btn:hover {
    background: #cbd5e1;
}

/* ============================================================ */
/* VIEW CARD MODAL CONTENT */
/* ============================================================ */
.modal-avatar-wrapper {
    text-align: center;
    margin-bottom: 15px;
}
.modal-img-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #0cb8b6;
    margin: 0 auto;
}
.modal-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-img-circle i {
    font-size: 36px;
    color: #94a3b8;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.info-item {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}
.info-item.full-width {
    grid-column: span 2;
}
.info-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}
.info-value a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.info-value a:hover {
    text-decoration: underline;
}

/* ============================================================ */
/* EDIT SINGLE CHAMBER MODAL (popup) */
/* ============================================================ */
#editSingleChamberModal {
    z-index: 10000 !important;
}
#editSingleChamberModal .modern-card-modal {
    z-index: 10001 !important;
}

#editSingleChamberModal .chamber-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#editSingleChamberModal .chamber-edit-grid .full-row {
    grid-column: span 2;
}

#editSingleChamberModal .chamber-edit-grid label {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
    display: block;
    margin-bottom: 6px;
}

#editSingleChamberModal .chamber-edit-grid input,
#editSingleChamberModal .chamber-edit-grid select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: 0.3s;
}

#editSingleChamberModal .chamber-edit-grid input:focus,
#editSingleChamberModal .chamber-edit-grid select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(12,184,182,0.1);
}

#editSingleChamberModal .chamber-edit-grid .weekday-checkboxes {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 5px;
}

#editSingleChamberModal .chamber-edit-grid .weekday-checkboxes label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-right: 0 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    padding: 4px 6px;
}

#editSingleChamberModal .chamber-edit-grid .weekday-checkboxes label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--primary) !important;
    cursor: pointer !important;
}

/* ============================================================ */
/* ADD CHAMBER INLINE FORM */
/* ============================================================ */
.add-chamber-inline {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}

.add-chamber-inline .inline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.add-chamber-inline .inline-grid .full-row {
    grid-column: span 2;
}

.add-chamber-inline .inline-grid input,
.add-chamber-inline .inline-grid select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
}

.add-chamber-inline .weekday-checkboxes {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.add-chamber-inline .weekday-checkboxes label {
    font-size: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    margin-right: 6px !important;
}

.add-chamber-inline .weekday-checkboxes label input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    accent-color: var(--primary) !important;
    cursor: pointer !important;
}

/* ============================================================ */
/* EDIT FULL RECORD MODAL (main edit) */
/* ============================================================ */
.edit-full-modal .modal-card {
    max-width: 800px;
    width: 95%;
}

.edit-full-modal .modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.edit-full-modal .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.edit-full-modal .form-grid .full-width {
    grid-column: span 2;
}

.edit-full-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edit-full-modal .form-group label {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
}

.edit-full-modal .form-group input,
.edit-full-modal .form-group textarea,
.edit-full-modal .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: 0.3s;
}

.edit-full-modal .form-group input:focus,
.edit-full-modal .form-group textarea:focus,
.edit-full-modal .form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(12,184,182,0.1);
}

.edit-full-modal .form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.edit-full-modal .image-preview {
    text-align: center;
    margin-bottom: 15px;
}

.edit-full-modal .image-preview img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.edit-full-modal .image-preview .placeholder-icon {
    font-size: 60px;
    color: #94a3b8;
}

/* ============================================================ */
/* SPECIALTY AND WEEK DAYS INSIDE EDIT RECORD MODAL - FIXED GAPS */
/* ============================================================ */
#editRecordModal .form-group.full-width > div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 5px;
}

#editRecordModal .form-group.full-width > div label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-right: 0 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}

#editRecordModal .form-group.full-width > div label:hover {
    background: #e2e8f0;
}

#editRecordModal .form-group.full-width > div label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--primary) !important;
    cursor: pointer !important;
}

/* ============================================================ */
/* CHAMBER SECTION INSIDE EDIT RECORD MODAL */
/* ============================================================ */
.edit-full-modal .chamber-section {
    margin-top: 20px;
    border-top: 2px solid #e2e8f0;
    padding-top: 15px;
}

.edit-full-modal .chamber-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.edit-full-modal .chamber-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.edit-full-modal .chamber-item .chamber-info {
    flex: 1;
}

.edit-full-modal .chamber-item .chamber-info strong {
    display: block;
    font-size: 14px;
    color: var(--dark);
}

.edit-full-modal .chamber-item .chamber-info span {
    font-size: 13px;
    color: #475569;
}

.edit-full-modal .chamber-item .chamber-actions {
    display: flex;
    gap: 6px;
}

.edit-full-modal .chamber-item .chamber-actions button {
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.edit-full-modal .chamber-item .chamber-actions .edit-chamber-btn {
    background: #dbeafe;
    color: #1e40af;
}
.edit-full-modal .chamber-item .chamber-actions .edit-chamber-btn:hover {
    background: #bfdbfe;
}
.edit-full-modal .chamber-item .chamber-actions .delete-chamber-btn {
    background: #fee2e2;
    color: #dc2626;
}
.edit-full-modal .chamber-item .chamber-actions .delete-chamber-btn:hover {
    background: #fecaca;
}

.edit-full-modal .add-chamber-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
}
.edit-full-modal .add-chamber-btn:hover {
    background: var(--primary-dark);
}

/* ============================================================ */
/* MULTI-SELECT GRID (if used anywhere) */
/* ============================================================ */
.multi-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 15px;
    border: 1.5px solid #e2e8f0;
    max-height: 350px;
    overflow-y: auto;
    width: 100%;
}

.multi-select-grid .category-title {
    grid-column: 1 / -1;
    font-weight: 800;
    color: #0cb8b6;
    font-size: 13px;
    padding: 8px 5px 3px 5px;
    border-bottom: 2px solid #0cb8b6;
    margin-bottom: 5px;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #0cb8b6 !important;
}

.multi-select-grid .category-title i {
    margin-right: 6px;
}

.multi-select-grid label {
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    transition: 0.3s;
    min-height: 40px;
}

.multi-select-grid label:hover {
    border-color: #0cb8b6;
    background: #f0fdfa;
}

.multi-select-grid label.selected {
    background: #d1fae5;
    border-color: #0cb8b6;
}

.multi-select-grid label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0cb8b6;
    cursor: pointer;
    flex-shrink: 0;
}

.multi-select-grid label .opt-name {
    font-weight: 600;
    flex: 1;
}

.multi-select-grid label .opt-sub {
    font-size: 10px;
    color: #94a3b8;
    display: block;
}

.multi-select-grid label .opt-badge {
    font-size: 9px;
    background: #e2e8f0;
    padding: 1px 8px;
    border-radius: 50px;
    color: #475569;
    margin-left: auto;
}

/* Scrollbar */
.multi-select-grid::-webkit-scrollbar {
    width: 6px;
}
.multi-select-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.multi-select-grid::-webkit-scrollbar-thumb {
    background: #0cb8b6;
    border-radius: 10px;
}

/* ============================================================ */
/* CHAMBERS MODERN LIST (for View All) */
/* ============================================================ */
.chamber-list-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chamber-item-modern {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    transition: 0.3s;
}

.chamber-item-modern:hover {
    border-color: var(--primary);
    background: #f0fdfa;
}

.chamber-item-modern .chamber-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.chamber-item-modern .chamber-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chamber-item-modern .chamber-name i {
    color: var(--primary);
}

.chamber-item-modern .primary-badge {
    background: #f59e0b;
    color: white;
    font-size: 10px;
    padding: 2px 12px;
    border-radius: 50px;
    font-weight: 700;
}

.chamber-item-modern .chamber-detail {
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 3px;
    line-height: 1.5;
}

.chamber-item-modern .chamber-detail i {
    min-width: 18px;
    margin-top: 2px;
    color: #94a3b8;
}

.chamber-item-modern .chamber-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.set-primary-btn-modern {
    padding: 5px 14px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
}

.set-primary-btn-modern:hover {
    background: #fde68a;
}

.edit-chamber-btn-modern {
    padding: 5px 14px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edit-chamber-btn-modern:hover {
    background: #bfdbfe;
}

.delete-chamber-btn-modern {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.delete-chamber-btn-modern:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.delete-chamber-btn-modern:active {
    transform: scale(0.95);
}

.delete-chamber-btn-modern i {
    font-size: 13px;
}

/* ============================================================ */
/* CAPTCHA BOX */
/* ============================================================ */
.captcha-box {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    margin-top: 15px;
}

.captcha-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.captcha-question {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.captcha-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
}

.captcha-input:focus {
    border-color: var(--primary);
    outline: none;
}

/* ============================================================ */
/* GATEWAY BANNER */
/* ============================================================ */
.gateway-banner {
    background: linear-gradient(135deg, var(--dark), #0f172a);
    padding: 30px 35px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.gateway-banner h2 {
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.gateway-banner p {
    color: #94a3b8;
    font-size: 14px;
}

.gateway-btn {
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gateway-btn:hover {
    background: #0a9e9c;
    transform: translateY(-2px);
}

/* ============================================================ */
/* DELETE REQUESTS TABLE */
/* ============================================================ */
.delete-requests-table .status-badge {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}
.delete-requests-table .status-pending {
    background: #fef3c7;
    color: #92400e;
}
.delete-requests-table .status-approved {
    background: #d1fae5;
    color: #065f46;
}
.delete-requests-table .status-rejected {
    background: #fee2e2;
    color: #991b1b;
}
.delete-requests-table .action-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.delete-requests-table .process-delete-btn {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.delete-requests-table .process-delete-btn.approve {
    background: #10b981;
    color: white;
}
.delete-requests-table .process-delete-btn.approve:hover {
    background: #059669;
}
.delete-requests-table .process-delete-btn.reject {
    background: #ef4444;
    color: white;
}
.delete-requests-table .process-delete-btn.reject:hover {
    background: #dc2626;
}
.delete-requests-table .processed-by {
    color: #94a3b8;
    font-size: 13px;
}
.delete-requests-table .rejection-reason {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* ============================================================ */
/* DELETE REQUEST PROCESS MODAL */
/* ============================================================ */
#processDeleteModal .modal-card {
    max-width: 800px;
}
#processDeleteModal .modal-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}
#processDeleteModal .modal-body {
    padding: 25px;
}
#processDeleteModal .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
#processDeleteModal .info-item {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}
#processDeleteModal .modal-avatar-wrapper {
    text-align: center;
    margin-bottom: 15px;
}
#processDeleteModal .modal-img-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #0cb8b6;
    margin: 0 auto;
}
#processDeleteModal .modal-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#processDeleteModal .chamber-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

/* ============================================================ */
/* DELETED WATERMARK STYLES */
/* ============================================================ */

/* Web table row watermark */
tr.deleted-record {
    position: relative;
    background-color: #fef2f2 !important;
}
tr.deleted-record::after {
    content: "DELETED";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
    color: rgba(239, 68, 68, 0.12);
    pointer-events: none;
    transform: rotate(-25deg);
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 10px;
}
tr.deleted-record td {
    position: relative;
    z-index: 2;
}

/* View Card watermark */
.modal-card.deleted-record-card {
    position: relative;
    overflow: hidden;
}
.modal-card.deleted-record-card::after {
    content: "DELETED";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 80px;
    font-weight: 900;
    color: rgba(239, 68, 68, 0.10);
    pointer-events: none;
    white-space: nowrap;
    z-index: 999;
    text-transform: uppercase;
    letter-spacing: 20px;
    width: 100%;
    text-align: center;
}

/* Chambers modal watermark */
.chambers-modal-deleted {
    position: relative;
    overflow: hidden;
}
.chambers-modal-deleted::after {
    content: "DELETED";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 80px;
    font-weight: 900;
    color: rgba(239, 68, 68, 0.10);
    pointer-events: none;
    white-space: nowrap;
    z-index: 999;
    text-transform: uppercase;
    letter-spacing: 20px;
    width: 100%;
    text-align: center;
}

/* PDF watermark */
.pdf-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 70px;
    font-weight: 900;
    color: rgba(239, 68, 68, 0.08);
    pointer-events: none;
    white-space: nowrap;
    z-index: 999;
    text-transform: uppercase;
    letter-spacing: 15px;
}
.record-page {
    position: relative;
}

/* PDF image placeholder */
.pdf-image-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
    border: 2px dashed #e2e8f0;
    color: #94a3b8;
    font-size: 48px;
}
.pdf-record-image {
    text-align: center;
    margin-bottom: 12px;
}
.pdf-record-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #0cb8b6;
}

/* PDF single record button */
.pdf-single-btn {
    padding: 6px 12px;
    background: #fef3c7;
    color: #92400e;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pdf-single-btn:hover {
    background: #fde68a;
}

/* Chamber deleted badge */
.chamber-deleted-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 10px;
    border-radius: 50px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================ */
/* VERIFICATION TOGGLE AND SEARCH */
/* ============================================================ */
.verification-status-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.verification-status-toggle .toggle-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: 2px solid #e2e8f0;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #475569;
}
.verification-status-toggle .toggle-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}
.verification-status-toggle .toggle-btn:hover {
    border-color: var(--primary);
}
.verification-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.verification-search-form input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: 0.3s;
}
.verification-search-form input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(12,184,182,0.1);
}
.verification-search-form button {
    padding: 10px 24px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.verification-search-form button:hover {
    background: var(--primary);
}

/* Verification tabs */
.verification-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}
.verification-tab {
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.2s;
    border: none;
}
.verification-tab:hover {
    background: #e2e8f0;
}
.verification-tab.active {
    background: var(--primary);
    color: white;
}
.verification-tab .count-badge {
    background: rgba(255,255,255,0.3);
    color: inherit;
    border-radius: 12px;
    padding: 0px 8px;
    font-size: 12px;
    margin-left: 5px;
}
.verification-tab.active .count-badge {
    background: rgba(255,255,255,0.25);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.verification-status-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.status-verified { background: #d1fae5; color: #065f46; }
.status-unverified { background: #fee2e2; color: #991b1b; }

/* Verify buttons */
.verify-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}
.verify-btn:hover { background: #059669; }
.unverify-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}
.unverify-btn:hover { background: #dc2626; }

/* Chamber verify */
.chamber-verify-btn {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 2px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}
.chamber-verify-btn:hover { background: #2563eb; }
.chamber-unverify-btn {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 2px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}
.chamber-unverify-btn:hover { background: #d97706; }
.chamber-verified-badge {
    background: #d1fae5;
    color: #065f46;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}
.chamber-unverified-badge {
    background: #fee2e2;
    color: #991b1b;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

/* ============================================================ */
/* WATERMARK FOR VERIFIED / UNVERIFIED - SMALLER (like stamp) */
/* ============================================================ */
tr.verified-record {
    position: relative;
    background-color: #f0fdf4 !important;
}
tr.verified-record::after {
    content: "VERIFIED";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: rgba(34, 197, 94, 0.08);
    pointer-events: none;
    transform: rotate(-25deg);
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 4px;
}
tr.unverified-record {
    position: relative;
    background-color: #fef2f2 !important;
}
tr.unverified-record::after {
    content: "UNVERIFIED";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: rgba(239, 68, 68, 0.08);
    pointer-events: none;
    transform: rotate(-25deg);
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 3px;
}
tr.verified-record td,
tr.unverified-record td {
    position: relative;
    z-index: 2;
}
tr.deleted-record.verified-record::after,
tr.deleted-record.unverified-record::after {
    content: "DELETED";
    color: rgba(239, 68, 68, 0.08);
}

/* ============================================================ */
/* COMPRESSION MODAL */
/* ============================================================ */
.compress-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}
.compress-overlay.active {
    display: flex;
}
.compress-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 30px 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}
.compress-preview-box {
    width: 160px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #0cb8b6;
    box-shadow: 0 8px 24px rgba(12,184,182,0.2);
}
.compress-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.compress-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}
.compress-card p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.compress-card p span {
    background: #fef3c7;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
    color: #d97706;
}
.compress-btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.comp-btn {
    padding: 12px 24px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}
.comp-btn.yes {
    background: #0cb8b6;
    color: white;
}
.comp-btn.yes:hover {
    background: #0a9c9a;
    transform: scale(1.02);
}
.comp-btn.no {
    background: #e2e8f0;
    color: #475569;
}
.comp-btn.no:hover {
    background: #cbd5e1;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================================ */
/* RESPONSIVE */
/* ============================================================ */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        height: 100vh;
        width: 280px;
        min-width: 280px;
    }
    .sidebar.active {
        left: 0;
    }
    .sidebar-overlay.active {
        display: block;
    }
    .welcome-text .mobile-menu-toggle {
        display: block;
    }
    .main-workspace {
        padding: 15px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-card .stat-info h3 {
        font-size: 22px;
    }
    .hub-search-form {
        flex-direction: column;
    }
    .hub-search-form .hub-select {
        width: 100%;
    }
    .hub-search-form .hub-input-box {
        min-width: 100%;
    }
    .control-header-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .control-header-wrapper .search-section input {
        min-width: 100%;
    }
    .action-section {
        justify-content: flex-start;
    }
    .data-table {
        font-size: 13px;
    }
    .data-table th, .data-table td {
        padding: 8px 10px;
    }
    .modern-card-modal {
        max-width: 100%;
        margin: 10px;
        border-radius: 16px;
    }
    .modern-header {
        border-radius: 16px 16px 0 0;
        padding: 15px 18px;
    }
    .modern-header h3 {
        font-size: 16px;
    }
    .modal-body {
        padding: 16px;
    }
    .modal-footer {
        padding: 12px 16px;
        border-radius: 0 0 16px 16px;
        flex-wrap: wrap;
    }
    .info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .info-item.full-width {
        grid-column: span 1;
    }
    .gateway-banner {
        flex-direction: column;
        text-align: center;
    }
    .action-cell {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    .view-card-btn, .edit-btn, .trash-btn, .chambers-view-btn {
        justify-content: center;
        width: 100%;
    }
    .edit-full-modal .form-grid {
        grid-template-columns: 1fr;
    }
    .edit-full-modal .form-grid .full-width {
        grid-column: span 1;
    }
    .edit-full-modal .modal-card {
        max-width: 100%;
        margin: 10px;
        border-radius: 16px;
    }
    .edit-full-modal .add-chamber-inline .inline-grid {
        grid-template-columns: 1fr;
    }
    .edit-full-modal .add-chamber-inline .inline-grid .full-row {
        grid-column: span 1;
    }
    #editSingleChamberModal .chamber-edit-grid {
        grid-template-columns: 1fr;
    }
    #editSingleChamberModal .chamber-edit-grid .full-row {
        grid-column: span 1;
    }
    .multi-select-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        padding: 15px;
        max-height: 300px;
    }
    .multi-select-grid label {
        font-size: 12px;
        padding: 6px 10px;
        min-height: 34px;
    }
    .multi-select-grid label input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
    .multi-select-grid .category-title {
        font-size: 12px;
        padding: 6px 5px 3px 5px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card {
        padding: 14px;
    }
    .stat-card .stat-info h3 {
        font-size: 18px;
    }
    .stat-card .stat-info p {
        font-size: 11px;
    }
    .stat-card .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .login-card {
        padding: 30px 20px;
    }
    .hub-search-wrapper {
        padding: 15px;
    }
    .section-box {
        padding: 14px;
    }
    .data-table {
        font-size: 12px;
    }
    .data-table th, .data-table td {
        padding: 6px 8px;
    }
    .export-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    .modern-card-modal {
        margin: 8px;
        border-radius: 14px;
    }
    .modal-img-circle {
        width: 60px;
        height: 60px;
    }
    .modal-img-circle i {
        font-size: 28px;
    }
    .chamber-item-modern {
        padding: 12px 14px;
    }
    .chamber-item-modern .chamber-name {
        font-size: 13px;
    }
    .edit-full-modal .form-grid {
        grid-template-columns: 1fr;
    }
    .edit-full-modal .form-grid .full-width {
        grid-column: span 1;
    }
    .edit-full-modal .add-chamber-inline .inline-grid {
        grid-template-columns: 1fr;
    }
    .edit-full-modal .add-chamber-inline .inline-grid .full-row {
        grid-column: span 1;
    }
    #editSingleChamberModal .chamber-edit-grid {
        grid-template-columns: 1fr;
    }
    #editSingleChamberModal .chamber-edit-grid .full-row {
        grid-column: span 1;
    }
    .multi-select-grid {
        grid-template-columns: 1fr 1fr !important;
        padding: 10px !important;
        gap: 6px !important;
        max-height: 280px !important;
    }
    .multi-select-grid label {
        font-size: 11px !important;
        padding: 5px 8px !important;
        min-height: 30px !important;
        border-radius: 6px !important;
    }
    .multi-select-grid label input[type="checkbox"] {
        width: 13px !important;
        height: 13px !important;
    }
    .multi-select-grid .category-title {
        font-size: 11px !important;
        padding: 5px 3px 2px 3px !important;
    }
}

@media (max-width: 360px) {
    .multi-select-grid {
        grid-template-columns: 1fr !important;
        padding: 8px !important;
        gap: 5px !important;
        max-height: 300px !important;
    }
    .multi-select-grid label {
        font-size: 12px !important;
        padding: 6px 10px !important;
        min-height: 34px !important;
    }
}

/* Scrollbar for sidebar and modal */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

.modern-card-modal::-webkit-scrollbar {
    width: 6px;
}
.modern-card-modal::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.modern-card-modal::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* ============================================================ */
/* MISC UTILITIES */
/* ============================================================ */
.restore-btn, .restore-chamber-btn-modern {
    background: #10b981;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}
.restore-btn:hover, .restore-chamber-btn-modern:hover {
    background: #059669;
}
.restore-chamber-btn-modern {
    padding: 6px 14px;
}
.action-cell .restore-btn {
    padding: 6px 12px;
    font-size: 13px;
}
.chamber-actions .restore-chamber-btn-modern {
    padding: 4px 12px;
}
.approval-reason-field {
    margin-top: 10px;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}
.approval-reason-field:focus {
    border-color: var(--primary);
    outline: none;
}
.approval-reason-label {
    font-weight: 700;
    font-size: 13px;
    display: block;
    margin-bottom: 5px;
}
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 999999;
    box-shadow: 0 8px 30px rgba(239,68,68,0.3);
    display: none;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}
.error-toast.show {
    display: block;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.toast-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 12px;
    opacity: 0.7;
}
.toast-close:hover { opacity: 1; }
.toast-content { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.verification-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 5px;
}
.badge-verified { background: #d1fae5; color: #065f46; }
.badge-unverified { background: #fee2e2; color: #991b1b; }
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}
.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}
.scroll-top-btn.show {
    display: flex;
}
.modal-verify-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
}
.modal-verify-badge.verified {
    background: #d1fae5;
    color: #065f46;
}
.modal-verify-badge.unverified {
    background: #fee2e2;
    color: #991b1b;
}
#viewCardModal {
    max-height: 90vh;
    overflow-y: auto;
}
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}