/* Brand palette — unified professional blue */
:root {
    --blue-900: #0d1b5e;
    --blue-800: #1a237e;
    --blue-700: #283593;
    --blue-600: #3949ab;
    --blue-500: #1565c0;
    --blue-400: #1e88e5;
    --blue-300: #42a5f5;
    --blue-50: #f0f4ff;
    --blue-100: #e8eef9;
    --blue-border: #c5cae9;
    --scrollbar-size: 7px;
    --scrollbar-track: rgba(229, 233, 240, 0.45);
    --scrollbar-thumb: rgba(57, 73, 171, 0.42);
    --scrollbar-thumb-hover: #3949ab;
    --scrollbar-thumb-active: #1565c0;
    --scrollbar-sidebar-thumb: rgba(255, 255, 255, 0.22);
    --scrollbar-sidebar-hover: rgba(255, 255, 255, 0.38);
}

/* Premium Scrollbar — thin, rounded, theme-aligned */
html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

html,
body,
.sidebar .menu,
.modal-content,
.dropdown-list,
.table-responsive,
.data-table-wrapper,
.settings-container,
.content-area {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 100px;
    margin: 4px 0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(57, 73, 171, 0.48), rgba(21, 101, 192, 0.52));
    border-radius: 100px;
    border: 2px solid transparent;
    background-clip: padding-box;
    min-height: 48px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--scrollbar-thumb-hover), var(--scrollbar-thumb-active));
    background-clip: padding-box;
    box-shadow: 0 0 0 1px rgba(21, 101, 192, 0.12);
}

::-webkit-scrollbar-thumb:active {
    background: var(--scrollbar-thumb-active);
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-button,
::-webkit-scrollbar-button:single-button,
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:horizontal:end:increment {
    display: none;
    width: 0;
    height: 0;
}

.sidebar .menu {
    scrollbar-color: var(--scrollbar-sidebar-thumb) transparent;
}

.sidebar .menu::-webkit-scrollbar-track {
    margin: 6px 0;
}

.sidebar .menu::-webkit-scrollbar-thumb {
    background: var(--scrollbar-sidebar-thumb);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sidebar .menu::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-sidebar-hover);
    background-clip: padding-box;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
}

.sidebar .menu::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.5);
    background-clip: padding-box;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    ::-webkit-scrollbar-thumb {
        transition: none;
    }
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    direction: ltr;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1a237e 0%, #283593 100%);
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: auto;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
}

.sidebar .logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar .logo img {
    display: block;
    margin: 0 auto 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sidebar .logo h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    text-align: center;
}

.sidebar .logo p {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

.sidebar .menu {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 8px;
}

.sidebar .menu ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar .menu ul li {
    margin-bottom: 5px;
}

.sidebar .menu ul li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 15px;
    font-size: 1rem;
}

.sidebar .menu ul li a:hover,
.sidebar .menu ul li.active a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-inline-start: 4px solid #1565c0;
}

.sidebar .menu ul li a i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    flex-shrink: 0;
    width: 100%;
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.08);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1565c0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.logout-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    width: calc(100% - 260px);
    margin-inline-start: 260px;
    margin-inline-end: 0;
    transition: all 0.3s ease;
}

.topbar {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #555;
}

#page-title {
    font-size: 1.5rem;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle-btn {
    border: 1px solid #e6e9f0;
    background: #fff;
    color: #3949ab;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    min-width: 72px;
}

.lang-toggle-btn:hover {
    background: #f8f9ff;
    border-color: #c5cae9;
}

.dashboard-rtl .filters,
.dashboard-rtl .section-header,
.dashboard-rtl .dropdown-item,
.dashboard-rtl .dropdown-item-row {
    text-align: right;
}

.dashboard-rtl .data-table th,
.dashboard-rtl .data-table td {
    text-align: right;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    inset-inline-start: 10px;
    color: #999;
}

.search-box input {
    padding-block: 8px;
    padding-inline-start: 35px;
    padding-inline-end: 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: border 0.3s ease;
}

.search-box input:focus {
    border-color: #1565c0;
}

.topbar-dropdown {
    position: relative;
}

.icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid #e6e9f0;
    border-radius: 12px;
    background: #fff;
    color: #4a5568;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn:hover,
.user-chip:hover {
    border-color: #c5cae9;
    background: #f8f9ff;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e53935;
    color: #fff;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border: 1px solid #e6e9f0;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    max-width: 220px;
}

.user-chip-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3949ab, #1a237e);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-chip-avatar.large {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

.user-chip-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.user-chip-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.user-chip-role {
    font-size: 0.72rem;
    color: #718096;
    text-transform: capitalize;
}

.user-chip .chevron {
    font-size: 0.7rem;
    color: #a0aec0;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    inset-inline-start: auto;
    width: 320px;
    background: #fff;
    border: 1px solid #e6e9f0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(26, 35, 126, 0.12);
    z-index: 1100;
    overflow: hidden;
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f5;
}

.link-btn {
    border: none;
    background: none;
    color: #3949ab;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.dropdown-list {
    max-height: 280px;
    overflow-y: auto;
}

.dropdown-item-row {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f8;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-item-row:hover {
    background: #f8f9ff;
}

.dropdown-item-row i {
    color: #3949ab;
    margin-top: 2px;
}

.dropdown-item-row strong {
    display: block;
    font-size: 0.86rem;
    color: #2d3748;
}

.dropdown-item-row small {
    color: #718096;
    font-size: 0.76rem;
}

.dropdown-empty {
    padding: 18px 16px;
    margin: 0;
    color: #718096;
    font-size: 0.86rem;
    text-align: center;
}

.dropdown-user-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #edf0f5;
    background: #f8f9ff;
}

.dropdown-user-name {
    font-weight: 700;
    color: #2d3748;
}

.dropdown-user-email {
    font-size: 0.8rem;
    color: #718096;
}

.dropdown-item {
    width: 100%;
    border: none;
    background: #fff;
    text-align: left;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #2d3748;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f8f9ff;
}

.dropdown-item.danger {
    color: #c62828;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Area */
.content-area {
    padding: 30px;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #333;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a237e, #283593, #3949ab, #1565c0);
    background-size: 300% 100%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(21, 101, 192, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stat-card .icon i {
    font-size: 1.8rem;
    color: #1565c0;
}

.stat-card .info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #333;
}

.stat-card .info p {
    color: #777;
    font-size: 0.9rem;
}

/* Charts Container */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.chart-box h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Recent Activity */
.recent-activity h3 {
    margin-bottom: 20px;
    color: #333;
}

.activity-list {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.activity-item .icon.booking {
    background: rgba(30, 136, 229, 0.1);
    color: #1e88e5;
}

.activity-item .icon.user {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
}

.activity-item .icon.car {
    background: rgba(92, 107, 192, 0.1);
    color: #5c6bc0;
}

.activity-item .details {
    flex: 1;
}

.activity-item .details h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.activity-item .details p {
    font-size: 0.9rem;
    color: #777;
}

.activity-item .time {
    font-size: 0.8rem;
    color: #999;
}

/* Filters */
.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #555;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #1565c0;
}

.search-group input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #1565c0;
    color: white;
}

.btn-primary:hover {
    background: #1256a8;
}

.btn-secondary {
    background: #3949ab;
    color: white;
}

.btn-secondary:hover {
    background: #283593;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #e53935;
}

.btn-warning {
    background: #5c6bc0;
    color: white;
}

.btn-warning:hover {
    background: #3949ab;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9rem;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.data-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #666;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.data-table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e3f2fd 100%);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.available {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
}

.status-badge.rented {
    background: rgba(30, 136, 229, 0.1);
    color: #1e88e5;
}

.status-badge.maintenance {
    background: rgba(92, 107, 192, 0.1);
    color: #5c6bc0;
}

.status-badge.pending {
    background: rgba(92, 107, 192, 0.1);
    color: #5c6bc0;
}

.status-badge.confirmed {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
}

.status-badge.active {
    background: rgba(30, 136, 229, 0.1);
    color: #1e88e5;
}

.status-badge.completed {
    background: rgba(57, 73, 171, 0.1);
    color: #3949ab;
}

.status-badge.cancelled {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

/* Action Badge Styles for Audit Logs */
.action-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.action-badge.action-create {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
}

.action-badge.action-update {
    background: rgba(30, 136, 229, 0.1);
    color: #1e88e5;
}

.action-badge.action-delete {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.action-badge.action-approve {
    background: rgba(57, 73, 171, 0.1);
    color: #3949ab;
}

.action-badge.action-reject {
    background: rgba(255, 87, 34, 0.1);
    color: #ff5722;
}

.action-badge.action-login {
    background: rgba(96, 125, 139, 0.1);
    color: #607d8b;
}

.action-badge.action-logout {
    background: rgba(121, 85, 72, 0.1);
    color: #795548;
}

/* Approval Tabs */
.approval-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #1565c0;
    color: white;
}

.approval-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.approval-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.approval-card:hover {
    transform: translateY(-5px);
}

.approval-card .header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.approval-card .header h4 {
    margin-bottom: 5px;
}

.approval-card .header p {
    font-size: 0.9rem;
    color: #777;
}

.approval-card .content {
    padding: 15px;
}

.approval-card .document-preview {
    height: 150px;
    background: #f5f5f5;
    border-radius: 5px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.approval-card .document-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.approval-card .actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #eee;
}

/* Report Styles */
.report-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: end;
}

.reports-toolbar {
    align-items: center;
    margin-bottom: 24px;
}

.reports-period-badge {
    margin-inline-start: auto;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.08), rgba(26, 35, 126, 0.06));
    border: 1px solid rgba(21, 101, 192, 0.15);
    border-radius: 999px;
    color: #1a237e;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.reports-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: #666;
}

.reports-body {
    transition: opacity 0.2s ease;
}

.reports-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.reports-kpi-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.06);
    border: 1px solid rgba(21, 101, 192, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reports-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(26, 35, 126, 0.1);
}

.reports-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reports-kpi-icon i {
    font-size: 1.35rem;
}

.reports-kpi-icon-primary {
    background: rgba(21, 101, 192, 0.12);
    color: #1565c0;
}

.reports-kpi-icon-success {
    background: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
}

.reports-kpi-icon-info {
    background: rgba(0, 131, 143, 0.12);
    color: #00838f;
}

.reports-kpi-icon-accent {
    background: rgba(106, 27, 154, 0.12);
    color: #6a1b9a;
}

.reports-kpi-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.reports-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a237e;
    line-height: 1.2;
    word-break: break-word;
}

.reports-kpi-label {
    font-size: 0.92rem;
    color: #555;
    margin-top: 4px;
}

.reports-kpi-meta {
    font-size: 0.78rem;
    color: #888;
    margin-top: 6px;
}

.reports-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.reports-panel {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.06);
    border: 1px solid rgba(21, 101, 192, 0.08);
}

.reports-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.reports-panel-header h3 {
    margin: 0 0 4px;
    color: #1a237e;
    font-size: 1.1rem;
}

.reports-panel-header p {
    margin: 0;
    color: #777;
    font-size: 0.88rem;
}

.reports-chart-wrap {
    position: relative;
    height: 320px;
}

.reports-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reports-breakdown-item {
    padding-bottom: 4px;
}

.reports-breakdown-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.reports-breakdown-label {
    font-weight: 600;
    color: #333;
    font-size: 0.92rem;
}

.reports-breakdown-count {
    font-weight: 700;
    color: #1565c0;
}

.reports-breakdown-bar {
    height: 8px;
    background: #eef2f8;
    border-radius: 999px;
    overflow: hidden;
}

.reports-breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #1565c0, #3949ab);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.reports-breakdown-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #888;
}

.reports-breakdown-empty {
    text-align: center;
    color: #888;
    padding: 40px 12px;
}

.reports-table-panel .table-container {
    margin-top: 0;
}

.reports-detail-table th {
    background: #f5f7fb;
    color: #1a237e;
}

.dashboard-rtl .reports-kpi-card,
.dashboard-rtl .reports-panel-header,
.dashboard-rtl .reports-breakdown-top,
.dashboard-rtl .reports-breakdown-meta {
    text-align: right;
}

.dashboard-rtl .reports-period-badge {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

@media (max-width: 1200px) {
    .reports-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .reports-kpi-grid {
        grid-template-columns: 1fr;
    }

    .reports-period-badge {
        width: 100%;
        text-align: center;
        margin-inline-start: 0;
    }
}

.report-summary {
    margin-bottom: 30px;
}

.report-summary h3 {
    margin-bottom: 20px;
    color: #333;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.summary-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #777;
}

.summary-card p {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.report-chart {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Settings Styles */
.settings-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.setting-item input,
.setting-item select,
.setting-item textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border 0.3s ease;
}

.setting-item input:focus,
.setting-item select:focus,
.setting-item textarea:focus {
    border-color: #1565c0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1565c0;
}

.modal-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar .logo h2 span,
    .sidebar .logo p,
    .sidebar .menu ul li a span,
    .sidebar-footer {
        display: none;
    }
    
    .sidebar .logo h2 i {
        margin-right: 0;
    }
    
    .sidebar .menu ul li a {
        justify-content: center;
        padding: 15px 5px;
    }
    
    .main-content {
        width: calc(100% - 70px);
        margin-inline-start: 70px;
        margin-inline-end: 0;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 15px;
    }

    .user-chip-text,
    .user-chip .chevron {
        display: none;
    }

    .search-box {
        display: none;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
    
    .approval-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    
    .main-content {
        width: 100%;
        margin-inline-start: 0;
        margin-inline-end: 0;
    }
    
    .header-left .menu-toggle {
        display: block;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Additional Utility Classes */
.empty-state-box {
    padding: 28px 16px;
    color: #666;
}

.empty-state-box i {
    font-size: 2rem;
    color: #9aa0a6;
    margin-bottom: 10px;
}

.empty-state-box p {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.empty-state-box small {
    display: block;
    margin-bottom: 14px;
    color: #777;
}

.verified-pill {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(21, 101, 192, 0.12);
    color: #2e7d32;
    font-size: 0.72rem;
    font-weight: 600;
}

.verified-pill.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.verified-pill.rejected {
    background: rgba(244, 67, 54, 0.12);
    color: #c62828;
}

.text-muted {
    color: #777;
    font-size: 0.85rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mr-10 {
    margin-right: 10px;
}

.ml-10 {
    margin-left: 10px;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.w-100 {
    width: 100%;
}

.cursor-pointer {
    cursor: pointer;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #1565c0;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
    border: 1px solid rgba(21, 101, 192, 0.2);
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.alert-warning {
    background: rgba(92, 107, 192, 0.1);
    color: #5c6bc0;
    border: 1px solid rgba(92, 107, 192, 0.2);
}

.alert-info {
    background: rgba(30, 136, 229, 0.1);
    color: #1e88e5;
    border: 1px solid rgba(30, 136, 229, 0.2);
}

/* Additions and Approvals Styles */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: #f5f7fa;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #e0e6ed;
}

.tab-btn.active {
    background: #1565c0;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.document-preview {
    text-align: center;
    margin-bottom: 20px;
}

.document-preview img {
    max-width: 100%;
    max-height: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.document-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.document-details h4 {
    margin-bottom: 15px;
    color: #333;
}

.document-details p {
    margin-bottom: 8px;
}

#rejection-reason {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    min-height: 80px;
    resize: vertical;
}

.approval-actions {
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-success {
    background: #1565c0;
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-header {
    padding: 20px;
    background: #1565c0;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-weight: 500;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #eee;
}

.modal-body {
    padding: 20px;
}

/* Table Improvements */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.data-table th {
    background: #f5f7fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #eee;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #666;
}

.data-table tr:hover td {
    background: #f9f9f9;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: #e8eaf6;
    color: #3949ab;
}

.status-approved {
    background: #e3f2fd;
    color: #1565c0;
}

.status-rejected {
    background: #ffebee;
    color: #f44336;
}

/* Quick Actions Styles */
.quick-actions {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quick-actions h3 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    background: #f5f7fa;
    border: none;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-card:hover {
    background: #1565c0;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(21, 101, 192, 0.2);
}

.action-card i {
    font-size: 2rem;
}

.action-card span {
    font-weight: 500;
}

/* Chart Container Improvements */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chart-box h3 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.chart-box canvas {
    width: 100% !important;
    height: 300px !important;
}

/* Recent Activity Styles */
.recent-activity {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.recent-activity h3 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1565c0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin-bottom: 5px;
    color: #333;
}

.activity-content p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.activity-time {
    color: #999;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card .info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .topbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .header-left,
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        flex: 1;
        max-width: 200px;
    }
}

/* Cars Management Styles */
.header-actions {
    display: flex;
    gap: 10px;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: #555;
}

.filter-group select,
.search-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-group input {
    min-width: 200px;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.pagination .btn {
    padding: 8px 15px;
}

#page-info {
    font-weight: 500;
    color: #555;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.2);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Modal Improvements */
.modal-content {
    max-width: 700px;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Car Image in Table */
.car-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.car-image {
    width: 50px;
    height: 30px;
    border-radius: 4px;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #777;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
    }
    
    .filter-group,
    .search-group {
        width: 100%;
    }
    
    .search-group input {
        min-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Bookings Management Styles */
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-section {
    margin-bottom: 20px;
}

.summary-section h5 {
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.summary-details p {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.summary-details strong {
    color: #555;
}

.booking-summary .action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

/* File Upload Styles */
.file-input {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.file-preview {
    margin-top: 10px;
    position: relative;
    display: inline-block;
}

.file-preview img {
    border: 2px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-image-btn:hover {
    background-color: #c82333;
}

/* User Details Modal Styles */
.admin-detail-modal .modal-content,
#user-details-modal .modal-content {
    max-width: 720px;
    overflow: hidden;
}

.admin-detail-modal-body {
    overflow-x: hidden;
    max-height: min(78vh, 720px);
    overflow-y: auto;
}

.admin-detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    color: #64748b;
}

.admin-detail-loading[hidden],
.admin-detail-layout[hidden] {
    display: none !important;
}

.admin-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-detail-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f6ff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    flex-wrap: wrap;
}

.admin-detail-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1565c0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-detail-hero-text {
    flex: 1;
    min-width: 140px;
}

.admin-detail-hero-text h4 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: #1e293b;
}

.admin-detail-sub {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    word-break: break-all;
}

.admin-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-inline-start: auto;
}

.admin-detail-section {
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
}

.admin-detail-section-title {
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1565c0;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

.admin-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.admin-detail-item-wide {
    grid-column: 1 / -1;
}

.admin-detail-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-detail-value {
    font-size: 0.95rem;
    color: #1e293b;
    word-break: break-word;
}

.admin-detail-empty {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.admin-doc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-doc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.85rem;
}

.admin-doc-chip-title {
    font-weight: 600;
    color: #334155;
}

.admin-doc-chip-link {
    color: #1565c0;
    text-decoration: none;
}

.admin-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid #eef2f7;
}

.user-info {
    padding: 0;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.user-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-active,
.status-badge.status-approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-badge.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.user-details {
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    color: #555;
    font-weight: 600;
    min-width: 150px;
}

.detail-row span {
    color: #333;
    text-align: right;
    flex: 1;
}

.doc-count-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8eef9;
    color: #1565c0;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.doc-type-summary {
    font-size: 0.82rem;
    color: #718096;
    line-height: 1.4;
}

.verification-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.verification-doc-card {
    background: #f8f9ff;
    border: 1px solid #e6e9f0;
    border-radius: 12px;
    padding: 12px;
}

.verification-doc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.verification-doc-card img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e6e9f0;
}

.doc-missing {
    text-align: center;
    color: #718096;
    padding: 24px 12px;
}

#doc-rejection-reason-input {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #e6e9f0;
    border-radius: 8px;
    resize: vertical;
}

.user-actions {
    padding-top: 20px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.action-buttons .btn {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .booking-summary .action-buttons {
        flex-direction: column;
    }
    
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-detail-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-detail-badges {
        margin-inline-start: 0;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-row strong {
        min-width: auto;
    }
    
    .detail-row span {
        text-align: left;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Unified Admin Modal System
   ============================================================ */
.admin-modal {
    backdrop-filter: blur(2px);
    background-color: rgba(15, 23, 42, 0.55);
    padding: 24px 16px;
    overflow-y: auto;
}

.admin-modal .modal-content,
.admin-detail-modal-content {
    margin: 0 auto;
    width: min(760px, 100%);
    max-width: 760px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-form-modal .modal-content {
    max-width: 860px;
}

.admin-modal .modal-header {
    padding: 18px 22px;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: #fff;
    border-bottom: none;
    border-radius: 0;
}

.admin-modal .modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.admin-modal .close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    transition: background 0.2s ease;
}

.admin-modal .close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.admin-detail-modal-body,
.admin-modal .modal-body {
    overflow-x: hidden;
}

.admin-form-modal .modal-body {
    padding: 22px;
    max-height: min(78vh, 820px);
    overflow-y: auto;
}

.admin-form-modal .form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-form-modal .form-group input,
.admin-form-modal .form-group select,
.admin-form-modal .form-group textarea {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.admin-form-modal .form-actions,
.admin-modal .modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

.admin-detail-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #1565c0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.admin-detail-comment {
    margin: 0;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    line-height: 1.6;
    white-space: pre-wrap;
}

.admin-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 999px;
    color: #f57f17;
    font-weight: 700;
}

.admin-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.admin-breakdown-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
    color: #475569;
}

.admin-breakdown-table tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    color: #1565c0;
    font-size: 1.02rem;
}

.admin-breakdown-table td:last-child {
    text-align: end;
}

.admin-modal .document-preview img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.admin-modal textarea,
#doc-rejection-reason-input,
#rejection-reason {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    resize: vertical;
    min-height: 88px;
    font-family: inherit;
}

body.admin-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .admin-modal {
        padding: 12px 8px;
    }

    .admin-modal .modal-content,
    .admin-detail-modal-content {
        width: 100%;
        margin: auto 0 0;
        border-radius: 16px 16px 0 0;
    }
}
