body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.15);
}

.card-cancha {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-cancha:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08)!important;
}

.cancha-img-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.cancha-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-cancha:hover .cancha-img-container img {
    transform: scale(1.05);
}

.cancha-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

/* Estilos de los turnos */
.slot-item {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.slot-libre { 
    background-color: #e8f5e9; 
    color: #1b5e20; 
    cursor: pointer; 
}
.slot-libre:hover { 
    background-color: #c8e6c9; 
    border-color: #a5d6a7; 
    transform: scale(1.01); 
}

.slot-ocupado { 
    background-color: #ffebee; 
    color: #b71c1c; 
    cursor: not-allowed; 
    opacity: 0.8; 
}

.slot-pendiente { 
    background-color: #fff8e1; 
    color: #f57f17; 
    cursor: not-allowed; 
    opacity: 0.8; 
}

/* Modo Oscuro General */
body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .card, 
body.dark-mode .modal-content {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #2c2c2c !important;
}

body.dark-mode .form-control, 
body.dark-mode .input-group-text {
    background-color: #2c2c2c !important;
    color: #fff !important;
    border-color: #444 !important;
}

body.dark-mode .slot-item {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border-color: #333 !important;
}

body.dark-mode .modal-header, 
body.dark-mode .bg-light {
    background-color: #1a1a1a !important;
    color: #fff !important;
}

/* Estilos unificados de impresión (Turnos y Torneos) */
@media print {
    nav.navbar,
    .modal,
    .alert,
    .no-print,
    .container > .card:not(#seccionReporteImprimir):not(#seccionReporteImprimirTorneo) {
        display: none !important;
    }

    body, .bg-light {
        background-color: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #seccionReporteImprimir,
    #seccionReporteImprimirTorneo {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 15px !important;
        width: 100% !important;
        background: #ffffff !important;
    }

    .table-responsive {
        overflow: visible !important;
    }

    table {
        width: 100% !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}