/**
 * FlottTaxi Hotel Panel Styles
 * Mobile-first responsive design
 */

:root,
[data-theme="dark"] {
    --primary: #00D26A;
    --primary-dark: #00B85C;
    --primary-light: #E8FFF3;
    --secondary: #1a1a2e;
    --background: #0f0f1a;
    --surface: #1a1a2e;
    --surface-light: #252540;
    --surface-hover: #2e2e4a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
    --border: #2a2a45;
    --error: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --info: #3b82f6;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --primary: #00B85C;
    --primary-dark: #009e4e;
    --primary-light: #e0faf0;
    --secondary: #f0f2f5;
    --background: #f5f6fa;
    --surface: #ffffff;
    --surface-light: #f0f2f5;
    --surface-hover: #e8eaef;
    --text-primary: #1a1a2e;
    --text-secondary: #555568;
    --text-muted: #8b8ba0;
    --border: #e0e2e8;
    --error: #dc2626;
    --warning: #d97706;
    --success: #059669;
    --info: #2563eb;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

/* ==================== LOGIN PAGE ==================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--background) 0%, var(--secondary) 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.login-logo h1 span {
    color: var(--primary);
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 210, 106, 0.15);
}

.login-form input::placeholder {
    color: var(--text-muted);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.login-btn:hover {
    background: var(--primary-dark);
}

.login-btn:active {
    transform: scale(0.98);
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==================== LAYOUT ==================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo span {
    color: var(--primary);
}

.sidebar-logo small {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
}

.nav-section {
    padding: 10px 20px 5px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(0, 210, 106, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.nav-submenu {
    padding-left: 20px;
}
.nav-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 15px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s;
    border-left: 2px solid var(--border);
}
.nav-sub-item:hover {
    color: var(--text-primary);
    border-left-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}
.nav-sub-item i {
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
}
.nav-sub-item .nav-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    background: #818cf8;
    color: #fff;
}

.nav-badge.warning {
    background: var(--warning);
}

.nav-badge.error {
    background: var(--error);
    color: #fff;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #000;
}

.admin-details {
    flex: 1;
}

.admin-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    color: var(--error);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.content-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.content-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.content-title p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.content-body {
    padding: 30px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    color: var(--text-primary);
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ==================== CARDS & STATS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.primary { background: rgba(0, 210, 106, 0.15); color: var(--primary); }
.stat-icon.info { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.stat-icon.warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.stat-icon.error { background: rgba(239, 68, 68, 0.15); color: var(--error); }

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 2px;
}

.stat-change {
    font-size: 0.75rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--error); }

/* ==================== TABLES ==================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--surface-light);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    white-space: nowrap;
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: var(--surface-light);
}

.data-table td {
    font-size: 0.9rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-danger {
    background: var(--error);
    color: #fff;
}

.btn-warning {
    background: var(--warning);
    color: #000;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-error { background: rgba(239, 68, 68, 0.15); color: var(--error); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.badge-muted { background: var(--surface-light); color: var(--text-muted); }

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-select {
    cursor: pointer;
}

.search-input {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px 10px 40px;
    color: var(--text-primary);
    font-size: 0.9rem;
    min-width: 250px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* ==================== FILTERS ==================== */
.filters-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==================== AVATAR ==================== */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-light);
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 60px;
    height: 60px;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== LOADING ==================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.page-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay.open {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .content-header {
        padding: 15px 20px;
    }
    
    .content-body {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-info h3 {
        font-size: 1.4rem;
    }
    
    .stat-info p {
        font-size: 0.75rem;
    }
    
    .card-header {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .content-body {
        padding: 15px;
    }
    
    .content-header {
        padding: 12px 15px;
    }
    
    .content-title h1 {
        font-size: 1.1rem;
    }
    
    .content-title p {
        font-size: 0.75rem;
    }
    
    /* Mobile table - card style */
    .table-container {
        overflow-x: visible;
    }
    
    .data-table {
        display: block;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    .data-table tbody tr {
        display: flex;
        flex-direction: column;
        background: var(--surface-light);
        border-radius: var(--radius-sm);
        padding: 15px;
        border: 1px solid var(--border);
    }
    
    .data-table tbody tr:hover {
        background: var(--surface-light);
    }
    
    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.85rem;
    }
    
    .data-table td:last-child {
        border-bottom: none;
        padding-top: 12px;
        justify-content: flex-start;
    }
    
    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.75rem;
        text-transform: uppercase;
        margin-right: 10px;
    }
    
    /* User cell on mobile */
    .user-cell {
        flex: 1;
        justify-content: flex-end;
    }
    
    .data-table td:has(.user-cell) {
        flex-direction: row-reverse;
    }
    
    /* Action buttons on mobile */
    .action-btns {
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    /* Filters on mobile */
    .filters-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select,
    .form-select {
        flex: 1;
        width: 100%;
    }
    
    .search-wrapper {
        width: 100%;
    }
    
    .search-input {
        min-width: 100%;
        width: 100%;
    }
    
    /* Modal on mobile */
    .modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }
    
    .modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 12px 15px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* Login on mobile */
    .login-card {
        padding: 25px 20px;
    }
    
    .login-logo h1 {
        font-size: 1.5rem;
    }
    
    /* Header actions: hide extra buttons on mobile, keep theme switcher */
    .header-actions .btn {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: row;
        align-items: center;
    }
    
    .content-body {
        padding: 12px;
    }
    
    .data-table tbody {
        padding: 10px;
        gap: 10px;
    }
    
    .data-table tbody tr {
        padding: 12px;
    }
    
    .data-table td {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    /* Badge adjustments */
    .badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    /* Sidebar on small mobile */
    .sidebar {
        width: 100%;
    }
    
    .sidebar-header {
        padding: 15px;
    }
    
    .sidebar-logo {
        font-size: 1.2rem;
    }
    
    .nav-item {
        padding: 14px 15px;
    }
    
    .sidebar-footer {
        padding: 12px 15px;
    }
    
    /* IP Bans specific mobile styles */
    .stats-grid[style*="repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    
    .stats-grid[style*="repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Logs tabs */
    .card-header[style*="flex"] > div:first-child {
        flex-wrap: wrap;
        gap: 8px !important;
    }
    
    .card-header[style*="flex"] .btn {
        flex: 1;
        min-width: 80px;
        justify-content: center;
    }
    
    /* Form controls */
    .form-control,
    .form-input,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ==================== THEME SWITCHER ==================== */
.theme-switcher {
    display: inline-flex;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}
.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s;
}
.theme-btn:hover {
    color: var(--text-primary);
    background: var(--surface-hover, var(--border));
}
.theme-btn.active {
    background: var(--primary);
    color: #000;
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

.flex { display: flex; }
.flex-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }

.hidden { display: none !important; }

/* User/Driver info cell */
.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-cell-info h4 {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.user-cell-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Vehicle photos */
.vehicle-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--surface-light);
}

/* Action buttons group */
.action-btns {
    display: flex;
    gap: 8px;
}

/* Confirmation dialog */
.confirm-dialog {
    text-align: center;
}

.confirm-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.confirm-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.confirm-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.confirm-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

/* ==================== ADDITIONAL MOBILE UTILITIES ==================== */

/* Btn error for IP bans */
.btn-error {
    background: var(--error);
    color: #fff;
}

.btn-error:hover {
    background: #dc2626;
}

/* Scrollable inner on mobile */
@media (max-width: 768px) {
    /* Fix grid overrides */
    [style*="grid-template-columns: repeat(3"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    [style*="grid-template-columns: repeat(2"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    /* Inline form fixes */
    form[style*="display: inline"] {
        display: block !important;
        margin-top: 8px;
    }
    
    /* Fix flex gaps on mobile */
    [style*="display: flex"][style*="gap: 10px"] {
        gap: 8px !important;
        flex-wrap: wrap;
    }
    
    /* Better touch targets */
    .btn, button, a.nav-item, select, input {
        min-height: 44px;
    }
    
    /* Table horizontal scroll fallback */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Code blocks */
    code {
        word-break: break-all;
    }
    
    /* IP display */
    [style*="font-family: monospace"] {
        font-size: 0.8rem !important;
        word-break: break-all;
    }
}
