/**
 * MP Tickets Calendar - Estilos CSS
 */

.mp-tickets-vue-calendar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 100%;
    margin: 0 auto;
}

.calendar-header h4 {
    color: #ff6210;
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.calendar-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 8px;
}

.loader {
    background: #ff6210;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 98, 16, 0.3);
}

.calendar-footer {
    margin-top: 15px;
}

.calendar-info {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 12px;
    border-left: 4px solid #ff6210;
}

.calendar-info p {
    margin: 5px 0;
    color: #666;
}

.calendar-info strong {
    color: #333;
}

/* Estilos para VCalendar */
.v-calendar {
    font-family: inherit;
}

.v-calendar .vc-header {
    background-color: #ff6210 !important;
    color: white !important;
}

.v-calendar .vc-day {
    border-radius: 4px;
    transition: all 0.2s ease;
}

.v-calendar .vc-day:hover {
    background-color: #fff3cd !important;
    transform: scale(1.05);
}

.v-calendar .vc-day.is-today {
    background-color: #ff6210 !important;
    color: white !important;
    font-weight: bold;
}

.v-calendar .vc-day.is-selected {
    background-color: #28a745 !important;
    color: white !important;
    font-weight: bold;
}

.v-calendar .vc-day.is-disabled {
    background-color: #f5f5f5 !important;
    color: #ccc !important;
    cursor: not-allowed;
}

/* Botón de limpiar selección */
.calendar-footer button {
    background: #ff6210;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.calendar-footer button:hover {
    background: #e55a0e;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(255, 98, 16, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .mp-tickets-vue-calendar {
        padding: 10px;
    }
    
    .calendar-header h4 {
        font-size: 16px;
    }
    
    .calendar-info {
        font-size: 11px;
    }
}

/* Circuit Selector - Modern Radio Button Style */
.circuit-selector {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.circuit-option {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e9ecef;
}

.circuit-option:last-child {
    border-bottom: none;
}

.circuit-option:hover {
    background: #f1f3f4;
    margin: 0 -10px;
    padding: 12px 10px;
    border-radius: 6px;
}

.circuit-option.selected {
    background: #f8fff9;
    margin: 0 -10px;
    padding: 12px 10px;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.radio-button {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    background: white;
    transition: all 0.2s ease;
    position: relative;
}

.radio-circle.selected {
    border-color: #ff6210;
    background: #ff6210;
}

.radio-circle.selected::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.circuit-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.circuit-name {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.circuit-spaces {
    text-align: right;
}

.spaces-count {
    color: #28a745;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive para circuit selector */
@media (max-width: 768px) {
    .circuit-selector {
        padding: 10px;
    }
    
    .circuit-option {
        padding: 10px 0;
    }
    
    .circuit-name {
        font-size: 13px;
    }
    
    .spaces-count {
        font-size: 13px;
    }
}

/* Estilos para precios de circuitos */
.circuit-price {
    color: #ff6210;
    font-size: 12px;
    font-weight: bold;
}

.circuit-free {
    color: #28a745;
    font-size: 12px;
    font-weight: bold;
}

/* Estilos para el nuevo diseño accordion de circuitos */
.circuit-selector-accordion {
    margin-top: 10px;
}

.accordion-header {
    transition: all 0.2s ease;
}

.accordion-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Indicador visual cuando está expandido */
.accordion-header.expanded {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 98, 16, 0.2) !important;
}

.accordion-header svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-content {
    animation: fadeIn 0.3s ease-in-out;
}

.circuit-card {
    transition: all 0.2s ease;
}

.circuit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.circuit-card.selected {
    border-color: #ff6210 !important;
    box-shadow: 0 2px 15px rgba(255, 98, 16, 0.2) !important;
}

.circuit-card:last-child {
    margin-bottom: 0;
}

/* Responsive para diseño de cards */
@media (max-width: 768px) {
    /* Mantener layout horizontal en tablets */
    .circuit-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
    }
    
    .circuit-card .circuit-info {
        flex: 1;
        min-width: 0;
    }
    
    .circuit-card .circuit-spaces {
        flex: 0 0 auto;
        text-align: right;
        font-size: 12px;
    }
    
    .accordion-header {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .accordion-content {
        padding: 8px 12px;
    }
}

/* Solo para móviles muy pequeños cambiar a columna */
@media (max-width: 480px) {
    .circuit-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 10px;
    }
    
    .circuit-card .circuit-info {
        width: 100%;
    }
    
    .circuit-card .circuit-spaces {
        width: 100%;
        text-align: left;
        font-size: 11px;
    }
    
    .accordion-header {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .accordion-content {
        padding: 6px 10px;
    }
} 