/* style.css - Estilos para el Sistema de Reservaciones MVC */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 10px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Layout principal */
.container-fluid {
    padding: 0;
}

.main-content {
    background-color: white;
    min-height: 100vh;
    padding: 0;
}

.sidebar {
    background: #ffffff;
    min-height: 100vh;
    color: #333;
    border-left: 1px solid #e9ecef;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar con fondo blanco */
.sidebar-content {
    padding: 20px;
}

.sidebar img {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #e9ecef;
    max-width: 100%;
    height: auto;
}

/* ... (el resto del CSS permanece igual que en la versión anterior) ... */

/* Estados de la reservación */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pendiente {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.status-pagada {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.status-cortesia {
    background: linear-gradient(135deg, #e83e8c, #d91a72);
    color: white;
}

.status-cancelada {
    background: linear-gradient(135deg, #f8d7da, #f1b0b7);
    color: #721c24;
}

/* Tarjetas de estadísticas */
.stats-card {
    transition: transform 0.3s ease;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-card .card-body {
    padding: 1.5rem;
}

/* Tablas responsive */
.table-responsive {
    max-height: 600px;
    border-radius: var(--border-radius);
}

.sticky-header th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    box-shadow: 0 2px 2px -1px rgba(0,0,0,0.1);
}

/* Login */
.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }

    .main-content {
        min-height: auto;
    }

    .stats-card {
        margin-bottom: 1rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }
}

/* Estilos compactos para selección de carnets */
.carnet-selection-compact {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.carnet-item-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.carnet-item-compact:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.carnet-info-compact {
    flex: 1;
    min-width: 0;
}

.carnet-name-compact {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.carnet-description-compact {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.2;
}

.carnet-price-compact {
    font-weight: 700;
    color: #007bff;
    margin-right: 12px;
    min-width: 70px;
    text-align: right;
    font-size: 0.85rem;
}

.quantity-controls-compact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.carnet-quantity-compact {
    width: 50px !important;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 6px;
}

.quantity-controls-compact .btn {
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    width: 28px;
    height: 28px;
}

/* Para pantallas muy pequeñas */
@media (max-width: 576px) {
    .carnet-item-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        text-align: center;
    }

    .quantity-controls-compact {
        justify-content: center;
    }

    .carnet-price-compact {
        text-align: center;
        margin-right: 0;
    }
}

/* Input numérico más compacto */
input[type="number"].carnet-quantity-compact {
    -moz-appearance: textfield;
}

input[type="number"].carnet-quantity-compact::-webkit-outer-spin-button,
input[type="number"].carnet-quantity-compact::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}