/* ========================================
   MODERN CAR WASH DESIGN SYSTEM - ELEGANT EDITION
   ======================================== */

:root {
    /* Brand Colors - Paleta Sofisticada */
    --primary: #0f172a;
    --primary-dark: #020617;
    --primary-light: #1e293b;
    --primary-accent: #3b82f6;
    --secondary: #475569;
    --secondary-dark: #334155;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --info: #0ea5e9;
    --info-dark: #0284c7;
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* UI Elements - Sombras Sofisticadas */
    --border-radius: 0.875rem;
    --border-radius-sm: 0.5rem;
    --border-radius-lg: 1.25rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.12), 0 2px 4px -1px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 20px -5px rgba(15, 23, 42, 0.15), 0 4px 8px -2px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 20px 30px -5px rgba(15, 23, 42, 0.18), 0 10px 15px -5px rgba(15, 23, 42, 0.12);
    
    /* Gradientes Elegantes */
    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%);
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: visible !important;
    overflow-y: visible !important;
    position: static !important;
}

/* ========================================
   NAVBAR STYLES - DISEÑO ELEGANTE
   ======================================== */

.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15) !important;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: static !important;
    z-index: auto !important;
}

/* Navbar Toggler (Hamburger Menu) - Professional Design */
.navbar-toggler.custom-toggler {
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    padding: 0.5rem 0.625rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    width: 45px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
}

/* Ocultar toggler en desktop (992px+) */
@media (min-width: 992px) {
    .navbar-toggler.custom-toggler {
        display: none !important;
    }
}

.navbar-toggler.custom-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.05);
}

.navbar-toggler.custom-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.3);
    outline: none;
    border-color: white !important;
}

.navbar-toggler.custom-toggler:active {
    transform: scale(0.95);
}

/* Hamburger Lines */
.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    margin: 3px 0;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-toggler.custom-toggler:hover .hamburger-line {
    background-color: white;
}

/* Animation when toggler is active */
.navbar-toggler.custom-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.navbar-toggler.custom-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.custom-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand:hover {
    transform: translateY(-2px);
    color: white !important;
}

.navbar-brand i {
    font-size: 1.75rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    padding: 0.625rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: 0.625rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: white !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-link.active {
    background: rgba(59, 130, 246, 0.3) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.navbar-nav .nav-link i {
    font-size: 1.1rem;
}

.navbar-nav .nav-link span {
    display: inline;
}

/* Dropdown Menu - Diseño Moderno */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem !important;
    margin-top: 0.5rem !important;
    background: white;
    animation: dropdownFadeIn 0.2s ease-out;
    min-width: 240px;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    font-weight: 600 !important;
    color: #6b7280 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0.5rem 1rem 0.25rem !important;
}

.dropdown-divider {
    margin: 0.5rem 0 !important;
    opacity: 0.1 !important;
}

.dropdown-item {
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

.dropdown-item i {
    font-size: 1rem !important;
    width: 20px !important;
    text-align: center !important;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    color: #1f2937 !important;
    transform: translateX(4px);
}

.dropdown-item:active {
    background: #e5e7eb !important;
}

.dropdown-item.text-danger:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #dc2626 !important;
}

/* User Dropdown específico */
.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

.dropdown-item-text {
    padding: 0.75rem 1rem !important;
}

.dropdown-item-text strong {
    color: #111827;
    font-size: 0.95rem;
}

.dropdown-item-text small {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Mobile Navbar */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    .navbar-nav {
        gap: 0.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.875rem 1rem !important;
        margin: 0;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-brand i {
        font-size: 1.5rem;
    }
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
}

.navbar-nav .nav-link i {
    font-size: 1.1rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    border-radius: var(--border-radius-sm) !important;
    font-weight: 600 !important;
    padding: 0.625rem 1.5rem !important;
    border: none !important;
    transition: var(--transition) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm) !important;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow) !important;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 8px 16px rgba(71, 85, 105, 0.3) !important;
}

.btn-success {
    background: var(--gradient-success) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-danger {
    background: var(--gradient-danger) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-warning {
    background: var(--gradient-warning) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-secondary {
    background: #64748b !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background: #475569 !important;
    color: white !important;
    border-color: transparent !important;
}

/* Outline Buttons - Modern */
.btn-outline-primary {
    color: #3b82f6 !important;
    border: 2px solid #3b82f6 !important;
    background: transparent !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.btn-outline-danger {
    color: #ef4444 !important;
    border: 2px solid #ef4444 !important;
    background: transparent !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow) !important;
        overflow: visible !important;
    background: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.card-header {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    padding: 1.25rem 1.5rem !important;
    font-weight: 600;
    letter-spacing: -0.025em;
    font-size: 1.125rem;
}

.card-header h3,
.card-header .card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.card-body {
    padding: 1.5rem;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    color: white;
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ========================================
   TABLES
   ======================================== */

.table {
    border-radius: var(--border-radius);
        overflow: visible !important;
    background: white;
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 1rem;
}

.table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:hover {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    transform: scale(1.002);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: var(--gray-700);
}

/* Tabla - Estilos de fila especiales */
.table-success {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%) !important;
}

.table-success td {
    font-weight: 700;
    color: var(--gray-900);
}

.table tbody tr.table-success:hover {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
}

.table-warning {
    background: linear-gradient(to right, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.08) 100%) !important;
}

.table-warning td {
    font-weight: 700;
    color: var(--gray-900);
}

.table tbody tr.table-warning:hover {
    background: linear-gradient(to right, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.12) 100%) !important;
}

/* Filas alternas para mejor legibilidad */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(248, 250, 252, 0.5);
}

/* Bordes suaves */
.table-bordered {
    border: 1px solid var(--gray-200);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--gray-200);
}

/* ========================================
   TABLES - MODERN DESIGN
   ======================================== */

.table {
    --bs-table-bg: transparent;
    font-size: 0.9375rem;
}

.table-header-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 2px solid #cbd5e1;
}

.table-header-modern th {
    padding: 1rem 0.75rem;
    font-weight: 700;
    color: #475569;
    border-bottom: 2px solid #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table-row-hover:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(2px);
    box-shadow: -4px 0 0 0 var(--primary-accent);
}

.table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* Price Badge */
.price-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9375rem;
}

/* Empty State */
.empty-state {
    padding: 3rem 1rem;
}

.empty-state i {
    display: block;
    opacity: 0.4;
}

.empty-state h5 {
    font-weight: 600;
    margin-bottom: 0;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1);
}

.badge-success {
    background: var(--gradient-success) !important;
    color: white !important;
}

.badge-danger {
    background: var(--gradient-danger) !important;
    color: white !important;
}

.badge-warning {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
    color: white !important;
}

.badge-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: white !important;
}

.badge-primary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: white !important;
}

.badge-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: white !important;
}

/* Badge colors adicionales para categorías */
.badge.bg-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: white !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: white !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: white !important;
}

/* ========================================
   FORMS
   ======================================== */

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 0.9375rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    border-left: 4px solid;
    box-shadow: var(--shadow);
}

.alert-success {
    background: #d1fae5;
    border-left-color: var(--success);
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    border-left-color: var(--danger);
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    border-left-color: var(--info);
    color: #1e40af;
}

.alert-warning {
    background: #fef3c7;
    border-left-color: var(--warning);
    color: #92400e;
}

/* ========================================
   UTILITIES
   ======================================== */

.text-muted {
    color: var(--gray-500) !important;
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ========================================
   STATISTICS CARDS - DISEÑO ELEGANTE
   ======================================== */

.stat-card {
    border-radius: var(--border-radius);
    padding: 1.75rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: white;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
        overflow: visible !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card-body {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.1);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.375rem;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Primary Card - Azul Sofisticado */
.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.stat-card-primary:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

/* Success Card - Verde Elegante */
.stat-card-success .stat-icon {
    background: var(--gradient-success);
    color: white;
}

.stat-card-success:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.stat-card-success::before {
    background: var(--gradient-success);
}

/* Warning Card - Ámbar Sofisticado */
.stat-card-warning .stat-icon {
    background: var(--gradient-warning);
    color: white;
}

.stat-card-warning:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.stat-card-warning::before {
    background: var(--gradient-warning);
}

/* Info Card - Cyan Elegante */
.stat-card-info .stat-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}

.stat-card-info:hover {
    border-color: rgba(14, 165, 233, 0.4);
}

.stat-card-info::before {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

/* Responsive para tarjetas de estadísticas */
@media (max-width: 768px) {
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-card-body {
        gap: 1rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
}

/* ========================================
   HISTORIAL TABLE - DISEÑO ELEGANTE
   ======================================== */

.historial-table {
    font-size: 0.9rem;
}

.historial-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.historial-table thead th {
    white-space: nowrap;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Placa Badge - Estilo de Placa Real */
.placa-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white !important;
    padding: 0.5rem 0.875rem;
    border-radius: 0.375rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 1.5px;
    text-align: center;
    min-width: 90px;
    border: 3px solid #64748b;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    position: relative;
}

.placa-badge::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 0.375rem;
    background: linear-gradient(45deg, #64748b 0%, #94a3b8 50%, #64748b 100%);
        z-index: 0 !important;
}

/* Tabla historial responsiva */
@media (max-width: 1200px) {
    .historial-table {
        font-size: 0.85rem;
    }
    
    .historial-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .historial-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .placa-badge {
        font-size: 0.8125rem;
        padding: 0.375rem 0.625rem;
        min-width: 75px;
        letter-spacing: 1px;
    }
}

@media (max-width: 768px) {
    .historial-table {
        font-size: 0.8rem;
    }
    
    .historial-table thead th,
    .historial-table tbody td {
        padding: 0.625rem 0.375rem;
    }
    
    .placa-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        min-width: 65px;
        letter-spacing: 0.75px;
        border-width: 2px;
    }
    
    .btn-group-sm > .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .table-responsive {
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
    }
    
    .historial-table thead th {
        font-size: 0.65rem;
        padding: 0.5rem 0.25rem;
    }
    
    .historial-table tbody td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
}
