/* ==========================================
   SISTEMA DE RESERVA DE CARRITOS (RESPONSIVE)
   PARA GENERATEPRESS
   ========================================== */

:root {
    --primary-blue: #0067FF;
    --bg-body: #f4f7f9;
    --sidebar-width: 260px;
}

/* Estilos de Login */
.carritos-login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #ffffff;
    position: relative;
    width: 100%;
}

.login-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 10;
    text-align: center;
}

/* Dashboard Container */
.dashboard-container { 
    display: flex; 
    min-height: 100vh; 
    font-family: 'Outfit', sans-serif; 
    background: #f8fafc;
    width: 100%;
}

/* Sidebar */
.sidebar { 
    width: var(--sidebar-width); 
    background: #fff; 
    border-right: 1px solid #e1e8ed; 
    padding: 40px 24px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.nav-item { 
    padding: 14px 18px; border-radius: 12px; cursor: pointer; color: #64748b; 
    margin-bottom: 8px; transition: 0.3s; display: flex; align-items: center; gap: 12px;
    font-weight: 500; border: none; background: transparent; width: 100%; text-align: left;
}
.nav-item.active { background: var(--primary-blue); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(0, 103, 255, 0.2); }

/* Control de Paneles (Tabs) */
.section-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.section-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Section */
.main-section { flex: 1; padding: 40px; max-width: 100%; overflow-x: hidden; }

/* Calendario */
.schedule-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th, .schedule-table td {
    padding: 20px;
    border: 1px solid #f1f5f9;
    text-align: center;
}

.time-col {
    width: 130px;
    font-weight: 700;
    color: #475569;
    background: #fbfcfd;
}

/* Form Elements */
.reserve-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1e293b;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
}

.btn-reserve {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.btn-reserve:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid #e1e8ed;
    }
    .nav-menu {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    .nav-item {
        margin-bottom: 0;
        white-space: nowrap;
        padding: 10px 15px;
        width: auto;
    }
}

@media (max-width: 768px) {
    .main-section {
        padding: 20px;
    }
    .login-card {
        padding: 30px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mostrar solo el día activo en el calendario */
    .schedule-table th:not(.time-col), .schedule-table td:not(.time-col) {
        display: none;
    }
    .schedule-table th.active-day, .schedule-table td.active-day {
        display: table-cell;
    }
}

/* Línea normal medias horas */
.fc-timegrid-slot-minor {
    border-top: 1px dashed #e2e8f0 !important;
}

.fc-timegrid-slot[data-time="11:30:00"] {
    background: #fef9c3 !important;
}

.fc-timegrid-slot-label[data-time="11:30:00"] {
    background: #fef9c3 !important;
    font-weight: 700;
    color: #b45309;
}

/* Líneas normales */
.fc-timegrid-slot {
    border-top: 1px solid #f1f5f9 !important;
}

/* Separadores de cambio de clase */
.fc-timegrid-slot[data-time="08:30:00"],
.fc-timegrid-slot[data-time="09:30:00"],
.fc-timegrid-slot[data-time="10:30:00"],
.fc-timegrid-slot[data-time="11:30:00"],
.fc-timegrid-slot[data-time="12:00:00"],
.fc-timegrid-slot[data-time="13:00:00"],
.fc-timegrid-slot[data-time="14:00:00"] {

    border-top: 3px solid #94a3b8 !important;
}