/* Turnos Page Styles */

.turnos-page {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.turnos-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #0088cc;
    padding: 20px;
    border-radius: 8px;
}

.info-box i {
    color: #0088cc;
    font-size: 18px;
}

/* FullCalendar Customizations */
#calendar {
    margin-top: 20px;
}

/* Header del calendario */
.fc .fc-toolbar-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.fc .fc-button {
    background: linear-gradient(135deg, #0088cc 0%, #005a8a 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    transition: all 0.3s ease !important;
}

.fc .fc-button:hover {
    background: linear-gradient(135deg, #006699 0%, #004466 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3) !important;
}

.fc .fc-button:disabled {
    background: #6c757d !important;
    opacity: 0.5;
}

.fc .fc-button-active {
    background: linear-gradient(135deg, #006699 0%, #004466 100%) !important;
}

/* Encabezados de día */
.fc .fc-col-header-cell {
    background: #0088cc !important;
    border: none !important;
    padding: 12px 0 !important;
}

.fc .fc-col-header-cell-cushion {
    color: white !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 14px;
}

/* Celdas de tiempo */
.fc .fc-timegrid-slot-label {
    font-weight: 500;
    color: #495057;
}

.fc .fc-timegrid-slot {
    height: 3em !important;
}

/* Eventos (turnos) */
.fc-event {
    cursor: pointer !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.fc-event:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.fc-event-title {
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.fc-event-time {
    white-space: nowrap !important;
    font-size: 14px !important;
}

.fc-timegrid-event .fc-event-main {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Ocultar el separador después del tiempo */
.fc-event-time::after {
    display: none !important;
}

.fc-timegrid-event-harness .fc-event-time::after {
    display: none !important;
}

/* Día de hoy */
.fc .fc-day-today {
    background-color: rgba(0, 136, 204, 0.05) !important;
}

.fc .fc-timegrid-col.fc-day-today {
    background-color: rgba(0, 136, 204, 0.03) !important;
}

/* Línea de tiempo actual */
.fc .fc-timegrid-now-indicator-line {
    border-color: #dc3545;
    border-width: 2px;
}

.fc .fc-timegrid-now-indicator-arrow {
    border-color: #dc3545;
}

/* Modal Styles */
.modal-header {
    background: linear-gradient(135deg, #0088cc 0%, #005a8a 100%);
    color: white;
    border-bottom: none;
}

.modal-header .close {
    color: white;
    opacity: 1;
    text-shadow: none;
}

.modal-header .close:hover {
    color: rgba(255, 255, 255, 0.8);
}

.modal-title {
    font-weight: 700;
    color: white;
}

.modal-body {
    padding: 25px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

#turno-info {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0088cc;
}

#turno-info p {
    margin: 0;
}

#turno-info strong {
    color: #0088cc;
}

/* Responsive */
@media (max-width: 768px) {
    .turnos-content {
        padding: 20px;
    }

    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc .fc-toolbar-title {
        font-size: 18px;
        margin: 10px 0;
    }

    .fc .fc-button {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 12px !important;
    }

    .fc-event {
        font-size: 11px !important;
    }
}

/* Loading indicator */
.fc .fc-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* Colores de estado mejorados */
.fc-event.estado-disponible {
    background-color: #01DF3A !important;
    border-color: #01DF3A !important;
}

.fc-event.estado-reservado {
    background-color: #6BA5C1 !important;
    border-color: #6BA5C1 !important;
}

.fc-event.estado-atendido {
    background-color: #A2CA94 !important;
    border-color: #A2CA94 !important;
}

.fc-event.estado-cancelado {
    background-color: #FF4000 !important;
    border-color: #FF4000 !important;
}

/* Vista de lista */
.fc .fc-list-event:hover td {
    background-color: rgba(0, 136, 204, 0.1) !important;
}

.fc .fc-list-event-dot {
    border-width: 6px !important;
}

/* Scrollbar personalizado */
.fc-scroller::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.fc-scroller::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.fc-scroller::-webkit-scrollbar-thumb {
    background: #0088cc;
    border-radius: 10px;
}

.fc-scroller::-webkit-scrollbar-thumb:hover {
    background: #006699;
}
