/* =========================================
   LAYOUT.CSS (Core, Themes, Sidebar, Header)
   ========================================= */
/* =========================================
   PWA NATIVE APP PROTECTIONS
   ========================================= */

/* 1. Disable text selection globally */
body {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    
    /* Disable iOS long-press popup menu */
    -webkit-touch-callout: none; 
    
    /* Disable double-tap to zoom */
    touch-action: manipulation;
}

/* 2. CRITICAL EXCEPTION: Allow users to type in forms */
input, textarea {
    -webkit-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
}

/* 3. Disable "Ghost Dragging" on images and links */
img, a {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* 1. Remove the blue flash when tapping links/buttons on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 2. Disable the "Pull-to-Refresh" browser behavior */
html, body {
    overscroll-behavior-y: contain;
}

/* 3. Hide all scrollbars globally across the admin interface while preserving smooth scrolling */
html, body, *, *::before, *::after {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE 10+ and Edge */
}

::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

/* --- 1. CSS VARIABLES (Themes) --- */
:root {
    --bg-color: #F8FAFC;      
    --surface: #FFFFFF;       
    --text-main: #0F172A;     
    --text-muted: #64748B;    
    --border: #E2E8F0;        
    --accent: #2563EB;        
    --btn-bg: #0F172A;
    --btn-text: #FFFFFF;
    --btn-hover: #1E293B;
    --radius-lg: 12px;
    --radius-md: 8px;
    --shadow-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --sidebar-width: 260px;
}

[data-theme="dark"] {
    --bg-color: #0B0F19;      
    --surface: #111827;       
    --text-main: #F8FAFC;     
    --text-muted: #94A3B8;    
    --border: #1F2937;        
    --accent: #3B82F6;        
    --btn-bg: #FFFFFF;
    --btn-text: #0F172A;
    --btn-hover: #E2E8F0;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* --- 2. RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); transition: background-color 0.3s, color 0.3s; }
.dashboard-layout { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }

/* --- 3. SIDEBAR DEPRECATION (SIDEBAR FULLY REMOVED) --- */
.sidebar, .close-sidebar-btn { display: none !important; }

/* --- 4. MAIN CONTENT & FULL-WIDTH TOP HEADER --- */
.main-content { 
    flex: 1; 
    margin-left: 0 !important; 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    min-width: 0; 
    min-height: 100vh;
    padding-bottom: 0 !important;
}

/* Header with Brand Logo, Page Navigation & Admin Profile Button */
.top-header { 
    background: var(--surface); 
    border-bottom: 1px solid var(--border); 
    height: 60px; 
    padding: 0 28px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 50; 
    transition: background-color 0.3s ease, border-color 0.3s ease; 
}
.header-left { 
    display: flex; 
    align-items: center; 
    gap: 24px; 
    min-width: 0; 
}

/* Brand Display */
.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.header-brand .brand-icon {
    color: var(--accent);
    width: 22px;
    height: 22px;
}
.header-brand .brand-badge {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 6px;
    line-height: 1.2;
}

/* Header Page Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.header-nav-link i, .header-nav-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease, color 0.2s ease;
}
.header-nav-link:hover {
    color: var(--text-main);
    background: var(--bg-color);
}
.header-nav-link.active {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.1);
    font-weight: 600;
}
.header-nav-link.active i, .header-nav-link.active svg {
    color: var(--accent);
}

/* Mobile Active Page Badge in Header */
.header-current-badge {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-color);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 20px;
}
.header-current-badge span {
    color: var(--accent);
}

/* Header Right - Admin Profile Trigger */
.header-right { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-shrink: 0; 
}

.header-admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 50%;
    padding: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-main);
}
.header-admin-btn:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}
.header-admin-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
}
.header-admin-meta {
    display: none;
}
.header-admin-chevron {
    display: none;
}

/* Legacy element compatibility */
.icon-btn { 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--text-muted); 
    padding: 6px; 
    width: 34px; 
    height: 34px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: var(--radius-md); 
    transition: color 0.2s ease, background-color 0.2s ease; 
}
.icon-btn:hover { color: var(--text-main); background: var(--bg-color); }
.icon-btn i, .icon-btn svg { width: 18px; height: 18px; }

/* Global Content Wrappers & Buttons */
.content-wrapper { padding: 24px 32px 80px 32px; max-width: 1400px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.page-header h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.page-header p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.primary-btn { background: var(--btn-bg); color: var(--btn-text); border: 1px solid transparent; padding: 8px 16px; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: 0.2s; box-shadow: var(--shadow-soft); }
.primary-btn:hover { background: var(--btn-hover); transform: translateY(-1px); }

/* --- 5. ADMIN PROFILE BOTTOM SHEET MODAL --- */
.admin-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.admin-sheet-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 0 max(20px, env(safe-area-inset-bottom)) 0;
    display: flex;
    flex-direction: column;
}
.admin-sheet-overlay.active .admin-sheet-container {
    transform: translateY(0);
}
.sheet-handle-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px 0 4px 0;
    cursor: pointer;
}
.sheet-drag-pill {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
}
.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px 16px 24px;
    border-bottom: 1px solid var(--border);
}
.sheet-header-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
}
.sheet-header-title p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 3px;
}
.sheet-close-btn {
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.sheet-close-btn:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}
.sheet-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Profile Hero Card */
.admin-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.admin-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}
.admin-card-details {
    flex: 1;
    min-width: 0;
}
.admin-card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-card-name-row h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}
.admin-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 12px;
}
.admin-role-badge svg, .admin-role-badge i {
    width: 12px;
    height: 12px;
}
.admin-card-email {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    word-break: break-all;
}

/* Section Titles */
.sheet-section-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Info List */
.admin-info-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 14px;
}
.admin-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px dashed var(--border);
    gap: 12px;
}
.admin-info-item:last-child {
    border-bottom: none;
}
.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12.5px;
    flex-shrink: 0;
}
.info-label svg, .info-label i {
    width: 15px;
    height: 15px;
}
.info-value {
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}
.modal-nav-section {
    display: none !important;
}
.modal-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.modal-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}
.modal-nav-item i, .modal-nav-item svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease, color 0.2s ease;
}
.modal-nav-item:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
    background: var(--surface);
    transform: translateY(-1px);
}
.modal-nav-item.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.08);
}
.modal-nav-item.active i, .modal-nav-item.active svg {
    color: var(--accent);
}
.status-indicator-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}
.status-dot-active {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
}

/* Theme Switcher in Sheet */
.theme-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 14px;
    gap: 12px;
}
.theme-switch-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.theme-switch-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}
.theme-switch-icon svg, .theme-switch-icon i {
    width: 18px;
    height: 18px;
}
.theme-switch-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
}
.theme-switch-desc {
    font-size: 11.5px;
    color: var(--text-muted);
}
.theme-toggle-switch {
    width: 48px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.25s ease;
    border: none;
    padding: 2px;
    flex-shrink: 0;
}
.theme-toggle-switch.dark-active {
    background: var(--accent);
}
.theme-toggle-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.25s ease;
}
.theme-toggle-switch.dark-active .theme-toggle-thumb {
    transform: translateX(22px);
}

/* Logout in Sheet */
.sheet-actions {
    margin-top: 4px;
}
.sheet-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.08);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sheet-logout-btn:hover {
    background: #EF4444;
    color: #FFFFFF;
    border-color: #EF4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.sheet-logout-btn svg, .sheet-logout-btn i {
    width: 18px;
    height: 18px;
}

/* --- STANDARDIZED MODAL ARCHITECTURE --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--surface);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
    gap: 12px;
    box-sizing: border-box;
}

.modal-header h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
    min-width: 0;
    word-break: break-word;
}

.modal-header .icon-btn,
.close-modal-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background-color 0.2s, color 0.2s;
}

.modal-header .icon-btn:hover,
.close-modal-btn:hover {
    background: var(--bg-color);
    color: var(--text-main);
}

.modal-header .icon-btn svg,
.modal-header .icon-btn i,
.close-modal-btn svg,
.close-modal-btn i {
    width: 18px;
    height: 18px;
}

/* Modal Body & Forms */
.modal-body,
.details-body,
#modal-body-content,
.modal-content > form {
    padding: 20px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
    box-sizing: border-box;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group.full {
    grid-column: span 2;
}

.form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.01em;
}

.form-input {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-color);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-actions,
.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
    box-sizing: border-box;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: 0.2s;
    box-sizing: border-box;
}

.btn-secondary:hover {
    background: var(--bg-color);
}

/* --- FLOATING BOTTOM DOCK NAVIGATION (DESKTOP & MOBILE) --- */
.admin-mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(500px, calc(100% - 32px));
    height: 58px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.16), 0 4px 12px -2px rgba(0, 0, 0, 0.08);
    z-index: 90;
    padding: 4px 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-sizing: border-box;
}

[data-theme="dark"] .admin-mobile-nav {
    background: rgba(17, 24, 39, 0.94);
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: var(--text-muted);
    gap: 3px;
    border-radius: 14px;
    transition: color 0.2s, background-color 0.2s, transform 0.15s;
    padding: 4px 2px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item svg,
.mobile-nav-item i {
    width: 20px;
    height: 20px;
    transition: transform 0.2s, color 0.2s;
}

.mobile-nav-item span {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

.mobile-nav-item.active {
    color: var(--accent);
}

.mobile-nav-item.active svg,
.mobile-nav-item.active i {
    transform: translateY(-1px);
    color: var(--accent);
}

.mobile-nav-item.active span {
    font-weight: 700;
    color: var(--accent);
}

/* --- 5. GLOBAL RESPONSIVENESS --- */
.md-hidden { display: none; }
@media (max-width: 1024px) { 
    .search-bar { display: none; } 
}
@media (max-width: 768px) {
    .top-header { height: 52px; padding: 0 16px; }
    .header-left { gap: 12px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 20px; }

    /* Collapsible container for mobile FAB buttons */
    .page-header-fab-container {
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: visible !important;
    }

    /* Fixed Floating Action Button docked right above mobile bottom navigation */
    .mobile-fab-btn {
        position: fixed !important;
        bottom: 84px !important;
        right: 16px !important;
        z-index: 85 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 12px 20px !important;
        height: 48px !important;
        border-radius: 9999px !important;
        background: var(--accent) !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        letter-spacing: 0.01em !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        box-shadow: 0 10px 25px -3px rgba(37, 99, 235, 0.5), 0 4px 10px -2px rgba(0, 0, 0, 0.25) !important;
        cursor: pointer !important;
        text-decoration: none !important;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
        -webkit-tap-highlight-color: transparent !important;
        box-sizing: border-box !important;
    }

    [data-theme="dark"] .mobile-fab-btn {
        box-shadow: 0 10px 25px -3px rgba(37, 99, 235, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
    }

    .mobile-fab-btn:active {
        transform: scale(0.94) !important;
    }

    .mobile-fab-btn svg,
    .mobile-fab-btn i {
        width: 18px !important;
        height: 18px !important;
        stroke-width: 2.4px !important;
    }
    
    /* Floating Bottom Nav for Mobile */
    .admin-mobile-nav {
        bottom: 12px;
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
        border-radius: 20px;
        height: 60px;
        padding: 4px 6px;
    }

    /* Padding to clear the floating bottom nav without excessive empty space */
    .content-wrapper {
        padding: 16px 16px 76px 16px !important;
    }

    /* Mobile Standardized Modals */
    .modal-overlay {
        padding: 8px;
    }

    .modal-content {
        width: 100% !important;
        max-width: calc(100vw - 16px) !important;
        max-height: 94vh !important;
        border-radius: 16px !important;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-header h2 {
        font-size: 17px;
        line-height: 1.3;
    }

    .modal-body,
    .details-body,
    #modal-body-content,
    .modal-content > form {
        padding: 14px 16px;
        max-height: calc(94vh - 125px);
        overflow-x: hidden;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 14px;
    }

    .form-group.full {
        grid-column: span 1;
    }

    .form-actions,
    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
    }

    .form-actions button,
    .modal-footer button {
        flex: 1;
        justify-content: center;
        min-height: 42px;
        font-size: 13.5px;
    }
}