/* ========================================
   SPORTS BOOKING PRO - PROFESSIONAL STYLES
   Version: 2.0
   ======================================== */

/* ===== VARIABLES CSS ===== */
:root {
    /* Colores Principales - LIME GREEN THEME */
    --primary: #65a30d; /* Lime 600 */
    --primary-dark: #3f6212; /* Lime 800 */
    --primary-light: #bef264; /* Lime 300 */
    --secondary: #475569; /* Slate 600 - Darker for better contrast with lime */
    --success: #16a34a; /* Green 600 */
    --danger: #dc2626; /* Red 600 */
    --warning: #f59e0b; /* Amber 500 */
    --info: #0891b2; /* Cyan 600 */

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #acf144 0%, #09a703 100%); /* Lime 500 to Emerald 700 */
    --gradient-success: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    --gradient-warning: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --gradient-danger: linear-gradient(135deg, #f87171 0%, #dc2626 100%); /* Red 400 to Red 600 */
    --gradient-info: linear-gradient(135deg, #22d3ee 0%, #0e7490 100%);

    /* Colores de Fondo */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;

    /* Textos */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Bordes y Sombras */
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ===== DARK MODE VARIABLES ===== */
[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    transition: var(--transition);
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-hover);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== NAVBAR MEJORADA ===== */
.navbar {
    backdrop-filter: blur(10px);
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

/* Logo fijo en navbar */
.brand-logo {
    height: 34px;
    width: 34px;
    object-fit: cover;
    border-radius: 8px;
    background: #e6f4ff;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    margin: 0 0.25rem;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.currency-selector select {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.currency-selector select:hover {
    background: rgba(255, 255, 255, 0.2);
}

.currency-selector select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ===== GRADIENTES DE FONDO ===== */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-gradient-warning {
    background: var(--gradient-warning) !important;
}

.bg-gradient-info {
    background: var(--gradient-info) !important;
}

.bg-gradient-danger {
    background: var(--gradient-danger) !important;
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
}

/* ===== STAT CARDS (KPIs) ===== */
.stat-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.5rem 0;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.3;
}

/* ===== CARDS MEJORADAS ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--bg-card);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    border-bottom: 2px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    background: transparent;
}

.card-body {
    padding: 1.5rem;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-card {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    animation: fadeInUp 0.5s ease-out;
}

/* ===== COURTS GRID ===== */
#courts-grid .card {
    height: 100%;
    transition: var(--transition);
    border: 1px solid #f59e0b;
}

#courts-grid .card .card-body {
    padding: 1rem;
}

#courts-grid .card .card-footer {
    padding: 0.75rem 1rem;
}

#courts-grid .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.court-card-header {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.court-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.court-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.court-price small {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== SCHEDULE GRID ===== */
.schedule-slot {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg-card);
}

.schedule-slot:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.schedule-slot.available {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.schedule-slot.occupied {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
    cursor: not-allowed;
}

/* Texto rojo en cards pagados */
.schedule-slot.occupied,
.schedule-slot.occupied .slot-time,
.schedule-slot.occupied .slot-client,
.schedule-slot.occupied .slot-price {
    color: var(--danger) !important;
}

.schedule-slot.occupied .text-muted {
    color: var(--danger) !important;
}

.schedule-slot.pending {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

.slot-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.slot-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--success);
}

.slot-client {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ===== RESERVATIONS TABLE ===== */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

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

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

.table tbody tr:hover {
    background: var(--bg-hover);
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* ===== BADGES MEJORADAS ===== */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ===== BUTTONS MEJORADOS ===== */
.btn {
    border-radius: var(--border-radius-sm);
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.btn-primary {
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Botón naranja personalizado */
.btn-orange {
    background: var(--warning);
    color: #fff;
    border-color: var(--warning);
}

.btn-orange:hover {
    background: #d97706;
    /* tono más oscuro del naranja */
    border-color: #d97706;
}

.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-xl);
}

.btn-floating:hover {
    transform: scale(1.1) rotate(90deg);
}

.quick-actions-menu {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    display: none;
    z-index: 998;
    min-width: 200px;
}

.quick-actions-menu.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* ===== MODALES MEJORADOS ===== */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
}

.modal-header {
    border-bottom: 2px solid var(--border-color);
}

.modal-footer {
    border-top: 2px solid var(--border-color);
}

/* ===== COMPROBANTE (FORMATO ORIGINAL) ===== */
/* ===== COMPROBANTE (FORMATO ORIGINAL & MEJORADO) ===== */
.receipt {
    margin: 0 auto;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #000;
    background: white;
    box-sizing: border-box;
}

/* Modificadores de Tamaño para Visualización en Modal */
.receipt.width-58 {
    width: 240px; /* ~58mm con márgenes */
    font-size: 11px;
    padding: 10px;
}

.receipt.width-80 {
    width: 320px; /* ~80mm con márgenes */
    font-size: 13px;
    padding: 15px;
}

.receipt.width-a4 {
    width: 100%;
    max-width: 700px; /* Vista previa A4 */
    font-size: 14px;
    padding: 40px;
    border: 1px solid #eee;
}

.receipt .rcpt-brand {
    text-align: center;
    margin-bottom: 15px;
}

.receipt .rcpt-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.receipt .rcpt-title {
    text-align: center;
    font-weight: 900;
    font-size: 1.2em;
    margin: 8px 0 4px;
    text-transform: uppercase;
}

.receipt .rcpt-series {
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
    color: #444;
    margin-bottom: 12px;
}

.receipt .rcpt-sep {
    border: none;
    border-top: 1px dashed #000;
    margin: 10px 0;
    opacity: 1;
}

.receipt .info {
    font-size: 0.95em;
}

.receipt .info dl {
    margin: 0;
    padding: 0;
}

.receipt .info dt {
    font-weight: 700;
    display: inline-block;
    min-width: 80px;
}

.receipt .info dd {
    display: inline;
    margin: 0;
    margin-left: 5px;
}

.receipt .info br {
    display: block;
    margin-bottom: 2px;
}

/* Tabla Mejorada */
.receipt .rcpt-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.95em;
}

.receipt .rcpt-table thead th {
    font-weight: 700;
    padding: 5px 2px;
    border-bottom: 1px dashed #000;
    text-align: left;
    vertical-align: bottom;
}

.receipt .rcpt-table tbody td {
    padding: 5px 2px;
    border-bottom: none;
    vertical-align: top;
}

/* Alineaciones Específicas */
.receipt .rcpt-table .qty {
    width: 15%;
    text-align: center;
    white-space: nowrap;
}

.receipt .rcpt-table th.qty {
    text-align: center;
}

.receipt .rcpt-table .desc {
    text-align: left;
}

.receipt .rcpt-table .pu,
.receipt .rcpt-table .imp {
    text-align: right;
    white-space: nowrap;
}

.receipt .rcpt-table th.pu,
.receipt .rcpt-table th.imp {
    text-align: right;
}

.receipt.width-58 .rcpt-table th.pu,
.receipt.width-58 .rcpt-table .pu {
    display: none; /* Ocultar PU en 58mm para espacio */
}

.receipt .rcpt-totals {
    margin-top: 10px;
    border-top: 1px dashed #000;
    padding-top: 10px;
}

.receipt .rcpt-totals .row {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
}

.receipt .rcpt-totals .row.align-right {
    justify-content: flex-end;
    gap: 20px;
}

.receipt .rcpt-totals .row.total {
    font-weight: 700;
    font-size: 1.2em;
    border-top: 1px dashed #000;
    padding-top: 8px;
    margin-top: 8px;
}

.receipt .thanks {
    text-align: center;
    margin: 15px 0;
    font-size: 0.9em;
    font-style: italic;
}

.receipt .doc {
    text-align: center;
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
}

/* ===== CHARTS ===== */
canvas {
    max-width: 100%;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

/* ===== TOASTS ===== */
.toast {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stat-value {
        font-size: 2rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .btn-floating {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .quick-actions-menu {
        bottom: 5rem;
        right: 1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        visibility: hidden !important;
        background: #fff;
    }

    #modal-receipt {
        visibility: visible !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        z-index: 2147483647 !important;
        background: #fff !important;
        display: block !important;
    }

    #modal-receipt .modal-dialog {
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    #modal-receipt .modal-content,
    #modal-receipt .modal-body {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    #modal-receipt .rcpt-brand .rcpt-logo {
        display: none !important; /* Ahorrar tinta en logos grandes */
    }

    /* Forzar visualización del recibo */
    .receipt,
    .receipt * {
        visibility: visible !important;
    }

    /* Ocultar elementos de UI del modal */
    .modal-header,
    .modal-footer,
    .btn,
    .btn-close {
        display: none !important;
    }

    /* Estilos de Impresión según Clase */

    /* 1. Thermal 58mm */
    .receipt.width-58 {
        width: 58mm;
        margin: 0;
        padding: 2mm;
        font-size: 10px;
    }
    .receipt.width-58 .rcpt-title { font-size: 12px; }
    .receipt.width-58 .rcpt-series { font-size: 11px; }

    /* 2. Thermal 80mm */
    .receipt.width-80 {
        width: 80mm;
        margin: 0;
        padding: 3mm;
        font-size: 12px;
    }
    .receipt.width-80 .rcpt-title { font-size: 14px; }

    /* 3. A4 */
    .receipt.width-a4 {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 20mm;
        font-size: 12pt;
    }
}
/* ===== UTILIDADES ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ===== SWEETALERT2 OVERRIDE ===== */
div.swal2-container {
    z-index: 20000 !important;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== LOGIN SCREEN ===== */
#login-screen .login-title {
    font-size: 2.25rem;
}

#login-screen .login-subtitle {
    font-size: 1rem;
}

#login-screen .card-header h5 {
    font-size: 1.25rem;
}

#login-screen .form-label {
    font-size: 1rem;
}

#login-screen .form-control {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

#login-screen .btn-login {
    padding: 0.9rem 1rem;
    /* más alto */
    font-size: 1.125rem;
    /* texto más grande */
    justify-content: center;
    /* centrar icono + texto */
}

/* ===== MODAL NUEVA CANCHA - ESTILOS PROFESIONALES ===== */
#modal-court .card {
    transition: var(--transition);
}

#modal-court .card:hover {
    transform: translateY(-2px);
}

#modal-court .card-header {
    padding: 1rem 1.25rem;
    border-bottom: none;
}

#modal-court .card-header h6 {
    font-size: 1rem;
    letter-spacing: 0.3px;
}

#modal-court .form-control-lg,
#modal-court .form-select-lg {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

#modal-court .input-group-text {
    background: var(--bg-hover);
    border-color: var(--border-color);
    font-weight: 600;
}

#modal-court .alert {
    border-left: 4px solid #0ea5e9;
}

#modal-court .form-check-input:checked {
    background-color: var(--success);
    border-color: var(--success);
}

#modal-court .table-primary {
    background-color: rgba(37, 99, 235, 0.1);
}

#modal-court .table-primary th {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

#modal-court .table-hover tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* Mejora visual para los iconos en labels */
#modal-court .form-label i {
    margin-right: 0.25rem;
}

/* Estilo para el switch grande de reglas avanzadas */
#modal-court .form-check-input[style*="3em"] {
    cursor: pointer;
}

/* Animación suave para mostrar/ocultar reglas */
#pricing-rules-card {
    animation: fadeInUp 0.3s ease-out;
}

/* ===== MODAL NUEVA RESERVA - ÁREA DE RESUMEN ===== */
#modal-booking .sticky-top {
    transition: var(--transition);
}

#modal-booking .card-header i.fs-1 {
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite;
}

/* Cards de información con hover */
#modal-booking .bg-light.rounded {
    transition: var(--transition);
    border: 1px solid transparent;
}

#modal-booking .bg-light.rounded:hover {
    background-color: #fff !important;
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

/* Iconos de información */
#modal-booking .bg-light.rounded i {
    transition: var(--transition);
}

#modal-booking .bg-light.rounded:hover i {
    transform: scale(1.1);
}

/* Alert de tarifa */
#modal-booking .alert-primary {
    border-left: 4px solid var(--primary);
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius);
}

/* Total destacado con animación */
#modal-booking .bg-gradient-primary.shadow {
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3) !important;
    transition: var(--transition);
}

#modal-booking .bg-gradient-primary.shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4) !important;
}

/* Adelanto y Saldo con fondos de color */
#modal-booking .bg-warning.bg-opacity-10 {
    transition: var(--transition);
}

#modal-booking .bg-warning.bg-opacity-10:hover {
    background-color: rgba(245, 158, 11, 0.2) !important;
}

#modal-booking .bg-danger.bg-opacity-10 {
    transition: var(--transition);
}

#modal-booking .bg-danger.bg-opacity-10:hover {
    background-color: rgba(239, 68, 68, 0.2) !important;
}

/* Input de adelanto mejorado */
#modal-booking .input-group-lg .input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
}

/* Botones del footer */
#modal-booking .card-footer .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

#modal-booking .card-footer .btn-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    border: none;
    transition: var(--transition);
}

#modal-booking .card-footer .btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.4);
}

/* Separadores mejorados */
#modal-booking hr {
    border-color: var(--border-color);
    opacity: 0.3;
}

/* Select de estado */
#modal-booking #booking-status {
    cursor: pointer;
    font-weight: 600;
}

/* ===== DISEÑO COMPACTO EN 2 COLUMNAS ===== */
#modal-booking .card-body .row.g-2 .col-6 .bg-light {
    min-height: 65px;
}

#modal-booking .small {
    font-size: 0.85rem;
}

#modal-booking .card-header h6 {
    font-size: 1rem;
}

/* Reducir espaciado en cards compactos */
#modal-booking .p-2 {
    padding: 0.5rem !important;
}

#modal-booking .mb-3 {
    margin-bottom: 0.75rem !important;
}

/* Iconos más pequeños en diseño compacto */
#modal-booking .fs-5 {
    font-size: 1.1rem !important;
}

/* Total compacto */
#modal-booking .fs-4 {
    font-size: 1.5rem !important;
}

#modal-booking .fs-2 {
    font-size: 1.75rem !important;
}

/* Botones compactos */
#modal-booking .card-footer .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

#modal-booking .card-footer .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
}

/* ===== ROLE BASED ACCESS CONTROL (RBAC) ===== */
/* Ocultar botones de eliminar para el Operador */
body.role-operator .btn-delete,
body.role-operator .btn-sm.btn-outline-danger, /* Botones "basura" en listas */
body.role-operator .btn-sm.text-danger /* Botones "basura" en listas modal? */
{
    display: none !important;
}

/* Ocultar botón de configuración para Operador */
body.role-operator #btn-settings {
    display: none !important;
}

/* Ocultar opciones peligrosas del menú flotante para Operador */
body.role-operator #qa-reports,
body.role-operator #qa-new-court,
body.role-operator #qa-new-service {
    /* Seleccionamos el padre <li> o el botón mismo */
    display: none !important;
}

/* Si están dentro de un <li> en la lista de acciones rápidas */
/* Si están dentro de un div en la lista de acciones rápidas */
body.role-operator .quick-actions-menu div:has(#qa-reports),
body.role-operator .quick-actions-menu div:has(#qa-new-court),
body.role-operator .quick-actions-menu div:has(#qa-new-service) {
    display: none !important;
}
