/* 
   =========================================================================
   HỆ THỐNG GIAO DIỆN "LUMINA ADMIN" - PHIÊN BẢN 2025
   Theme: Modern SaaS, Glassmorphism, Clean & Airy
   =========================================================================
*/

:root {
    /* 🎨 BẢNG MÀU CHỦ ĐẠO (PREMIUM PALETTE) */
    --primary: #4F46E5;
    /* Indigo 600 */
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;
    --secondary: #64748B;
    --bg-body: #F3F4F6;
    /* Cool Gray 100 */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --text-main: #111827;
    /* Grey 900 */
    --text-muted: #6B7280;
    /* Grey 500 */
    --text-light: #F9FAFB;

    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Layout & Spacing */
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --font-stack: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
}

/* 🌙 DARK MODE VARIABLES */
[data-theme="dark"] {
    --bg-body: #0F172A;
    /* Slate 900 */
    --text-main: #F8FAFC;
    /* Slate 50 */
    --text-muted: #94A3B8;
    /* Slate 400 */
    --secondary: #CBD5E1;
    /* Slate 300 */

    --glass-bg: #1E293B;
    /* Slate 800 (Solid for better contrast) */
    --glass-border: #334155;
    /* Slate 700 */
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);

    --primary-light: rgba(79, 70, 229, 0.2);
}

/* 🌙 DARK MODE GLOBAL OVERRIDES */
[data-theme="dark"] .glass-card,
[data-theme="dark"] .glass-sidebar,
[data-theme="dark"] .glass-header,
[data-theme="dark"] .glass-modal {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    backdrop-filter: none;
}

[data-theme="dark"] .main-content,
[data-theme="dark"] .content-wrapper {
    background: var(--bg-body) !important;
}

[data-theme="dark"] .top-bar {
    background: #0F172A !important;
    border-bottom-color: var(--glass-border);
}

[data-theme="dark"] #page-title {
    color: var(--text-main);
}

[data-theme="dark"] .sidebar {
    background: #0F172A;
    /* Darker sidebar */
    border-right-color: #334155;
}

[data-theme="dark"] .nav-link:hover {
    background: #1E293B;
}

/* Modern Dark Tables */
[data-theme="dark"] .table-wrapper th {
    background: #0F172A;
    /* Darker header for contrast */
    color: #E2E8F0;
    border-bottom: 2px solid #334155;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .table-wrapper td {
    color: #CBD5E1;
    border-bottom: 1px solid #334155;
    background: transparent;
    /* Use card background */
}

[data-theme="dark"] .table-wrapper tr:hover td {
    background: #2D3D53;
    /* Subtle highlight */
    color: #FFF;
}

[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-icon-action {
    background: transparent;
    border: 1px solid #475569;
    color: #CBD5E1;
}

[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-icon-action:hover {
    background: #334155;
    color: #FFF;
    border-color: #64748B;
}

[data-theme="dark"] .modern-search {
    background: #0F172A;
    border-color: #334155;
}

[data-theme="dark"] .modern-search input {
    color: #F8FAFC;
}

[data-theme="dark"] .modern-search input::placeholder {
    color: #64748B;
}

[data-theme="dark"] .location-card {
    background: #1E293B;
    border: 1px solid #334155;
}

[data-theme="dark"] .loc-name {
    color: #F8FAFC;
}

/* 🌙 DASHBOARD & DATA FIXES */
[data-theme="dark"] .stat-value {
    color: #F8FAFC;
}

[data-theme="dark"] .card-header h3 {
    color: #F8FAFC;
}

[data-theme="dark"] .stat-trend.positive {
    background: rgba(22, 163, 74, 0.2);
    color: #4ADE80;
}

[data-theme="dark"] .stat-trend.neutral {
    background: rgba(148, 163, 184, 0.2);
    color: #CBD5E1;
}

[data-theme="dark"] .stat-trend.highlight {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

/* 🌙 LIST & LOCATIONS FIXES */
[data-theme="dark"] .location-row {
    background: #1E293B;
    border-color: #334155;
}

[data-theme="dark"] .location-row:hover {
    background: #334155;
    border-color: #64748B;
}

[data-theme="dark"] .loc-row-name {
    color: #F8FAFC;
}

[data-theme="dark"] .loc-mini-val {
    color: #E2E8F0;
}

[data-theme="dark"] .btn-icon-sm {
    background: transparent;
    border-color: #475569;
    color: #CBD5E1;
}

[data-theme="dark"] .btn-icon-sm:hover {
    background: #475569;
    color: #FFF;
}

.sidebar.collapsed {
    width: 60px;
    /* Slimmer collapsed width */
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-category,
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .sidebar-footer span,
.sidebar.collapsed .version-tag {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
}

.sidebar.collapsed .logo-wrapper {
    margin: 0;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 1rem 0;
}

.sidebar.collapsed .sidebar-footer {
    justify-content: center;
    padding: 1rem 0;
}

.sidebar.collapsed .logout-btn-micro {
    gap: 0;
    justify-content: center;
}

.sidebar.collapsed~.main-content .top-bar,
.sidebar.collapsed~.main-content .content-wrapper {
    /* Main content expands automatically via flex */
}

/* --- RESET & BASIC --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    font-family: var(--font-stack);
    background: var(--bg-body);
    color: var(--text-main);
    overflow: hidden;
    /* App-like feel */
    height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

button {
    font-family: inherit;
}

/* --- SCROLLBAR --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* --- LOGIN SCREEN --- */
#login-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3F4F6 100%);
    z-index: 9999;
}

.login-bg-shapes .shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.login-bg-shapes .shape-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #C7D2FE;
    animation-delay: 0s;
}

.login-bg-shapes .shape-2 {
    bottom: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: #DDD6FE;
    animation-delay: 2s;
}

.login-bg-shapes .shape-3 {
    top: 40%;
    left: 40%;
    width: 200px;
    height: 200px;
    background: #BAE6FD;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    text-align: center;
}

.login-header img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.login-header h2 {
    font-weight: 800;
    color: #1E1B4B;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* --- MAIN LAYOUT --- */
.main-admin-container {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: #FFFFFF;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.sidebar-header img {
    width: 32px;
    height: 32px;
}

.brand-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
}

.nav-menu {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.nav-menu ul {
    list-style: none;
}

.nav-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94A3B8;
    margin: 1.5rem 0 0.5rem 0.8rem;
    letter-spacing: 0.05em;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: #F8FAFC;
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-link.go-home {
    margin-top: 0.5rem;
    border: 1px dashed #E2E8F0;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-btn-micro {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.logout-btn-micro:hover {
    color: var(--danger);
}

.version-tag {
    background: #F1F5F9;
    color: #94A3B8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* OVERLAY FOR MOBILE */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* MAIN AREA */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #F8FAFC;
    /* Light Grey BG */
    overflow: hidden;
}

/* HEADER */
.top-bar {
    height: var(--header-height);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
}

#page-description {
    font-size: 0.85rem;
    color: #64748B;
    margin-top: 2px;
}

.icon-btn-ghost {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--secondary);
    padding: 8px;
    border-radius: 50%;
}

.icon-btn-ghost:hover {
    background: #F1F5F9;
}

.date-picker-wrapper {
    background: #fff;
    border: 1px solid #E2E8F0;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

.date-picker-wrapper input {
    border: none;
    outline: none;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* CONTENT SCROLL */
.content-wrapper {
    flex: 1;
    overflow: hidden;
    /* Prevent body scroll */
    padding: 0;
    /* NO PADDING as requested */
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
}

.page-content {
    display: none;
    flex: 1;
    /* Use flex instead of height: 100% to fill available space */
    flex-direction: column;
    width: 100%;
    overflow-y: auto;
    /* Enable scrolling */
    padding: 1.5rem;
    padding-bottom: 4rem;
    /* Extra space at bottom */
}

.page-content.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLE SECTION (For scrolling) */
.table-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Fill parent container */
    max-height: 100%;
    /* Ensure it doesn't overflow parent */
    overflow: hidden;
    /* Hide card overflow, let wrapper scroll */
    padding-bottom: 0;
}

.table-section .card-header,
.table-section .section-header {
    flex-shrink: 0;
    /* Keep header fixed */
    padding-bottom: 1rem;
    border-bottom: 1px solid #F1F5F9;
}

.table-section .table-wrapper {
    flex: 1;
    overflow-y: auto;
    /* Scroll ONLY the table */
    min-height: 0;
    /* Flexbox scroll fix */
    padding-bottom: 1rem;
}

/* --- WIDGETS & CARDS --- */
#page-locations {
    overflow: hidden;
    /* Disable window scroll for split view */
    height: 100%;
    padding-bottom: 0;
}

.glass-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Restore shadow */
    border-radius: var(--radius-md);
    /* Restore radius */
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Ensure width */
    overflow: hidden;
}

.glass-card:hover {
    transform: none;
    box-shadow: none;
}

/* DASHBOARD STATS */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.stat-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1E293B;
    line-height: 1;
}

.stat-value sup {
    font-size: 1rem;
    font-weight: 600;
    color: #94A3B8;
    top: -0.5em;
}

.stat-trend {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.stat-trend.positive {
    background: #DCFCE7;
    color: #15803D;
}

.stat-trend.neutral {
    background: #F1F5F9;
    color: #475569;
}

.stat-trend.highlight {
    background: #DBEAFE;
    color: #1D4ED8;
}

.stat-deco-icon {
    opacity: 0.1;
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    color: #000;
}

.revenue-card .stat-deco-icon {
    color: var(--success);
}

.vehicles-card .stat-deco-icon {
    color: var(--info);
}

/* CHARTS GRID */
/* CHARTS GRID */
.dashboard-grid {
    /* Remove padding as it's handled by .page-content */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    /* Remove overflowing and height constraints to allow main page scroll */
    overflow: visible;
    height: auto;
}

/* New Design: Main Chart Top (Full Width), Doughnuts Bottom (Split) */
.chart-panel.full-width {
    grid-column: 1 / -1;
}

.chart-container {
    position: relative;
    width: 100%;
    /* Standardized height for better proportions */
    height: 400px;
    display: block;
}

/* Make chart panels fill the grid cell area fully */
.chart-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    padding: 1rem 1.25rem;
    /* Compact header */
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header.borderless {
    border-bottom: none;
    padding-bottom: 0.5rem;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E293B;
}

.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body.flush {
    padding: 0;
    height: 500px;
}

/* LOCATIONS PAGE - SPLIT VIEW */
.locations-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.map-view {
    flex: 1.5;
    /* Map takes 60% */
    min-height: 400px;
    border-bottom: 1px solid #E2E8F0;
    position: relative;
    z-index: 10;
}

#map-container {
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* LOCATIONS PAGE LAYOUT */
.locations-layout {
    display: grid;
    grid-template-columns: 4fr 6fr;
    /* Map 40%, List 60% */
    gap: 1.5rem;
    height: 100%;
    /* Fill the page content area */
    overflow: hidden;
    /* Prevent outer scroll */
    min-height: 600px;
}

.map-view {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-view .card-body {
    flex: 1;
    position: relative;
    padding: 0;
}

#map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.list-view {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    /* Remove card bg from container */
    border: none;
    box-shadow: none;
    overflow: hidden;
    /* Internal scroll */
}

.list-view .card-header {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.locations-grid {
    flex: 1;
    overflow-y: auto;
    /* Scrollable list */
    padding-right: 8px;
    /* Space for scrollbar */
    padding-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* Responsive cards */
    gap: 1.5rem;
}

/* Deprecated Grid Styles replaced by Table */

/* LOCATION CARDS REDESIGN */
.locations-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 2rem;
}

.location-row {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.location-row:hover {
    border-color: #6366F1;
    background: #F8FAFC;
    transform: translateX(4px);
}

.loc-row-icon {
    width: 40px;
    height: 40px;
    background: #EEF2FF;
    color: #6366F1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.loc-row-info {
    flex: 2;
    min-width: 0;
}

.loc-row-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loc-row-address {
    font-size: 0.8rem;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loc-row-stats {
    display: flex;
    gap: 1.5rem;
    margin-right: 1rem;
}

.loc-mini-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.loc-mini-label {
    font-size: 0.7rem;
    color: #94A3B8;
    text-transform: uppercase;
    font-weight: 600;
}

.loc-mini-val {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
}

.loc-row-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E2E8F0;
    background: white;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-sm:hover {
    border-color: #6366F1;
    color: #6366F1;
    background: #EEF2FF;
}

.btn-icon-sm.delete:hover {
    border-color: #EF4444;
    color: #EF4444;
    background: #FEF2F2;
}

.location-card:hover .loc-actions {
    opacity: 1;
}

/* CARD FOOTER (Actions) */
.loc-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #F1F5F9;
    background: #F8FAFC;
    display: flex;
    gap: 0.75rem;
}

.btn-card-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-card-action.edit {
    background: white;
    border-color: #E2E8F0;
    color: #334155;
}

.btn-card-action.edit:hover {
    border-color: #6366F1;
    color: #6366F1;
}

.btn-card-action.delete {
    background: white;
    border-color: #FECACA;
    color: #EF4444;
}

.btn-card-action.delete:hover {
    background: #FEF2F2;
    border-color: #EF4444;
}

.location-card:hover .loc-actions {
    opacity: 1;
}

.btn-icon-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #94A3B8;
}

.btn-icon-action:hover {
    background: #F1F5F9;
    color: #334155;
}

.btn-icon-action.edit:hover {
    background: #EFF6FF;
    color: #3B82F6;
}

.btn-icon-action.delete:hover {
    background: #FEF2F2;
    color: #EF4444;
}

/* TABLE & LISTS */
.modern-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 6px 12px;
    border-radius: 8px;
    width: 300px;
}

.modern-search input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.9rem;
}

.icon-btn-small {
    background: #fff;
    border: 1px solid #E2E8F0;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
}

.table-wrapper table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-wrapper th {
    background: #F8FAFC;
    color: #64748B;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.85rem 1rem;
    /* Compact Cell */
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 20;
    /* Ensure header stays above content */
}

.table-wrapper td {
    padding: 0.85rem 1rem;
    /* Compact Cell */
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.9rem;
    color: #334155;
    vertical-align: middle;
}

.table-wrapper tr:last-child td {
    border-bottom: none;
}

.table-wrapper tr:hover td {
    background: #F8FAFC;
}

.table-wrapper td.plate {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    color: #1E293B;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.parking {
    background: #DCFCE7;
    color: #166534;
}

.status-badge.departed {
    background: #F1F5F9;
    color: #64748B;
}

/* MODERN FORM CONTROLS */
.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group>label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748B;
    /* Secondary color */
    margin-bottom: 0.5rem;
    margin-left: 0.2rem;
}

/* Override for floating labels */
.floating-label label {
    font-size: 0.9rem;
    font-weight: 400;
    color: #94A3B8;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Floating Labels */
.floating-label input,
.floating-label textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    font-size: 1rem;
    transition: 0.2s;
    height: 3rem;
    /* Fixed height for inputs */
    padding-top: 1.2rem;
    padding-bottom: 0.4rem;
}

.floating-label textarea {
    height: auto;
    padding-top: 1.5rem;
}

.floating-label label {
    position: absolute;
    left: 1rem;
    top: 0.8rem;
    color: #94A3B8;
    font-size: 0.9rem;
    pointer-events: none;
    transition: 0.2s;
}

.floating-label input:focus,
.floating-label input:not(:placeholder-shown),
.floating-label textarea:focus,
.floating-label textarea:not(:placeholder-shown) {
    background: #fff;
    border-color: var(--primary);
}

.floating-label input:focus~label,
.floating-label input:not(:placeholder-shown)~label,
.floating-label textarea:focus~label,
.floating-label textarea:not(:placeholder-shown)~label {
    top: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.floating-label input,
.floating-label textarea {
    padding-top: 1.6rem;
    padding-bottom: 0.6rem;
}

/* BUTTONS REFACTOR */
.btn,
.action-button,
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
    font-size: 0.95rem;
}

.action-button {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-secondary {
    background: #F1F5F9;
    color: var(--text-main);
}

.btn-text-danger {
    background: none;
    color: var(--danger);
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.btn-xs {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 6px;
    height: auto;
}

.map-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #94A3B8;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: var(--danger);
}

/* SECURITY PAGE */
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

.security-alert-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    transition: 0.2s;
    box-shadow: var(--shadow-sm);
}

.security-alert-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: #CBD5E1;
}

.security-alert-card.block {
    border-left: 4px solid var(--danger);
    background: #FEF2F2;
}

.security-alert-card.warning {
    border-left: 4px solid var(--warning);
    background: #FFFBEB;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plate-badge {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1E293B;
    background: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
}

.alert-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.alert-badge.block {
    color: var(--danger);
    background: #FEE2E2;
}

.alert-badge.warning {
    color: var(--warning);
    background: #FEF3C7;
}

.alert-body {
    font-size: 0.9rem;
    color: #475569;
}

.alert-reason-row,
.alert-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.alert-reason-row .icon,
.alert-time-row .icon {
    opacity: 0.6;
    font-size: 0.9rem;
}

.btn-remove-security {
    margin-top: 1rem;
    width: 100%;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid #E2E8F0;
    color: var(--danger);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.85rem;
}

.btn-remove-security:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.empty-state-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #94A3B8;
    gap: 1rem;
}

.empty-state-illustration p {
    font-weight: 600;
    color: #64748B;
    margin: 0;
}

/* FORM SELECT FIX */
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    font-size: 1rem;
    height: 3rem;
    cursor: pointer;
    appearance: none;
    /* Custom arrow if needed, but default is safer for now */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%20viewBox%3D%220%200%20292.4%20292.4%22%3E%3Cpath%20fill%3D%22%231E293B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
}

/* MODAL HEADER */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-tags .tag {
    display: inline-block;
    padding: 6px 12px;
    background: #F1F5F9;
    color: #475569;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 6px;
}

.quick-tags .tag:hover {
    background: #E2E8F0;
}

.alert-options {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.radio-card {
    flex: 1;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    transition: 0.2s;
}

.radio-card:hover {
    border-color: var(--primary);
    background: #F8FAFC;
}

.radio-card input {
    margin-top: 4px;
}

.radio-content {
    display: flex;
    flex-direction: column;
}

.radio-content small {
    font-size: 0.75rem;
    color: #94A3B8;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s;
}

.modal-content.glass-modal {
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    width: 600px;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #F1F5F9;
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
}

.right-actions {
    display: flex;
    gap: 12px;
}

/* SQL & ANALYTICS */
.code-editor {
    font-family: monospace;
    background: #1E293B;
    color: #A5B4FC;
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    min-height: 120px;
    border: none;
}

.sql-editor-warning {
    background: #FEF2F2;
    color: #991B1B;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #FEE2E2;
}

/* LOADING & TOAST */
/* LOADING OVERLAY PREMIUM */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* Light translucent background */
    backdrop-filter: blur(15px);
    /* Strong blur breakdown */
    -webkit-backdrop-filter: blur(15px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

[data-theme="dark"] .loading-overlay {
    background: rgba(15, 23, 42, 0.85);
    /* Dark translucent */
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(0);
    animation: slideUpFade 0.5s ease-out;
}

[data-theme="dark"] .loading-container {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.loading-logo-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 1;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.loading-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.loading-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Progress Bar */
.loading-bar-container {
    width: 100%;
    height: 6px;
    background: #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .loading-bar-container {
    background: #334155;
}

.loading-bar-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #818CF8, var(--primary));
    background-size: 200% 100%;
    width: 50%;
    border-radius: 10px;
    animation: progressIndeterminate 1.5s infinite linear;
}

@keyframes progressIndeterminate {
    0% {
        width: 30%;
        margin-left: -30%;
        background-position: 100% 0;
    }

    50% {
        width: 60%;
        margin-left: 20%;
    }

    100% {
        width: 30%;
        margin-left: 100%;
        background-position: -100% 0;
    }
}

@keyframes ping {

    75%,
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
/* RESPONSIVE */
.sidebar {
    min-width: var(--sidebar-width);
    flex-shrink: 0;
}



/* 🔍 FILTER PANEL */
.filter-panel {
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

[data-theme="dark"] .filter-panel {
    background: rgba(30, 41, 59, 0.4);
}

[data-theme="dark"] .filter-group input,
[data-theme="dark"] .filter-group select {
    background: #0F172A;
    border-color: #334155;
    color: white;
}

/* 📊 DATA TABLE */
.card-header .btn-primary {
    padding: 0.4rem 0.8rem;
    height: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    margin-bottom: 0;
    border-bottom: 1px solid #F1F5F9;
    background: #fff;
    /* Ensure white bg */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    border: 1px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-title-stack h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-title-stack p {
    font-size: 0.8rem;
    color: #64748B;
    margin: 2px 0 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Badge Enhancements */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-indigo {
    background: #EEF2FF;
    color: #4F46E5;
}

.badge-red {
    background: #FEF2F2;
    color: #DC2626;
}

.badge-yellow {
    background: #FEFCE8;
    color: #CA8A04;
}

.badge-green {
    background: #ECFDF5;
    color: #059669;
}

.badge-blue {
    background: #EFF6FF;
    color: #2563EB;
}

/* Table Animation */
@keyframes rowEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.row-enter {
    animation: rowEnter 0.4s ease-out forwards;
}

.table-panel {
    min-height: 400px;
}

.batch-actions-toolbar.inline-header {
    margin-right: auto;
}

/* 📱 MOBILE OPTIMIZATION (CARD VIEW) */
@media (max-width: 768px) {
    .main-admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        display: none;
    }

    .dashboard-grid,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    /* Convert Table to Cards */
    .table-wrapper thead {
        display: none;
    }

    .table-wrapper tr {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid #E2E8F0;
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .table-wrapper td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px dashed #F1F5F9;
        text-align: right;
    }

    .table-wrapper td:last-child {
        border-bottom: none;
        justify-content: flex-end;
        padding-top: 1rem;
    }

    .table-wrapper td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748B;
        font-size: 0.85rem;
        text-transform: uppercase;
        margin-right: 1rem;
        text-align: left;
    }

    [data-theme="dark"] .table-wrapper tr {
        background: #1E293B;
        border-color: #334155;
    }
}

/* FIREWORKS & TOAST - Keep Original Z-Index behavior */
#toast-container {
    z-index: 11000;
}

.fireworks-container {
    z-index: 10001;
    pointer-events: none;
}

/* MODAL ANIMATIONS & STATUS */
.glass-modal {
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.status-modal-content {
    text-align: center;
    max-width: 400px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#status-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E293B;
}

#status-modal-message {
    color: #64748B;
    margin-bottom: 0.5rem;
}

#status-modal-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* SUCCESS ANIMATION (SVG) */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4F46E5;
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px #4F46E5;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4F46E5;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px #EEF2FF;
    }
}

/* ERROR ANIMATION */
.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #EF4444;
    position: relative;
    margin: 0 auto;
    animation: shake 0.5s ease-in-out forwards;
}

.error-icon::after,
.error-icon::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: #EF4444;
    top: 34px;
    left: 16px;
    border-radius: 2px;
}

.error-icon::after {
    transform: rotate(45deg);
}

.error-icon::before {
    transform: rotate(-45deg);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* =========================================================================
   BATCH ACTIONS & CHECKBOXES
   ========================================================================= */
.batch-actions-toolbar {
    display: none;
    /* Default hidden */
    align-items: center;
    gap: 12px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 6px 12px;
    border-radius: 8px;
    height: 38px;
    /* Removed opacity/visibility transitions for stability */
}

/* When visible, JS changes display to flex */
.batch-actions-toolbar.visible {
    display: flex !important;
}

.batch-info {
    font-size: 0.85rem;
    color: #1E40AF;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 12px;
    border-right: 1px solid #BFDBFE;
    white-space: nowrap;
}

.batch-controls {
    display: flex;
    gap: 8px;
}

.batch-controls button {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    padding: 4px 10px;
    height: 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.batch-controls .btn-secondary {
    background: white;
    border: 1px solid #CBD5E1;
    color: #475569;
}

.batch-controls .btn-secondary:hover {
    background: #F1F5F9;
    color: #1E293B;
}

.batch-controls .btn-danger {
    background: #FEF2F2;
    color: #EF4444;
    border: 1px solid #FCA5A5;
}

.batch-controls .btn-danger:hover {
    background: #EF4444;
    color: white;
}

/* SELECTED ROW HIGHLIGHT */
/* SELECTED ROW HIGHLIGHT */
.table-wrapper tr.selected-row td {
    background-color: #EFF6FF !important;
    /* Gentle Blue Highlight */
}

.table-wrapper tr.selected-row:hover td {
    background-color: #DBEAFE !important;
}

[data-theme="dark"] .table-wrapper tr.selected-row td {
    background-color: rgba(59, 130, 246, 0.2) !important;
    /* Semi-transparent blue */
    color: #F8FAFC;
}

[data-theme="dark"] .table-wrapper tr.selected-row:hover td {
    background-color: rgba(59, 130, 246, 0.3) !important;
}

/* CHECKBOX STYLING */
input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid #CBD5E1;
}