/**
 * TicketPayGo Calendar Styles
 */
.ticketpaygo-calendar-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.ticketpaygo-calendar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 20px;
}

/* FullCalendar Customizations */
.ticketpaygo-calendar .fc {
    font-family: inherit;
}

.ticketpaygo-calendar .fc-toolbar-title {
    font-size: 1.5em !important;
    font-weight: 700;
    color: #1a1a2e;
}

.ticketpaygo-calendar .fc-button {
    background: #3b82f6 !important;
    border: none !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-transform: capitalize !important;
}

.ticketpaygo-calendar .fc-button:hover {
    background: #2563eb !important;
}

.ticketpaygo-calendar .fc-button-active {
    background: #2563eb !important;
}

.ticketpaygo-calendar .fc-daygrid-day-number {
    font-weight: 600;
    color: #333;
    padding: 8px;
}

.ticketpaygo-calendar .fc-daygrid-day.fc-day-today {
    background: #f0f4ff !important;
}

.ticketpaygo-calendar .fc-event {
    background: #3b82f6 !important;
    border: 1px solid #3b82f6 !important;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticketpaygo-calendar .fc-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ticketpaygo-calendar .fc-event-title {
    font-weight: 600;
}

.ticketpaygo-calendar .fc-event-title,
.ticketpaygo-calendar .fc-event-time,
.ticketpaygo-calendar .fc-event-main,
.ticketpaygo-calendar .fc-event-main-frame,
.ticketpaygo-calendar .fc-list-event-title a,
.ticketpaygo-calendar .fc-list-event-time {
    color: inherit !important;
}

.ticketpaygo-calendar .fc-list-event {
    cursor: pointer;
}

.ticketpaygo-calendar .fc-list-event:hover td {
    background: #f0f4ff;
}

/* Event Popup */
.calendar-event-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-event-popup .popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.calendar-event-popup .popup-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: white;
    transform: scale(1.1);
}

.popup-event-image {
    height: 200px;
    background: #3b82f6;
    background-size: cover;
    background-position: center;
}

.popup-event-details {
    padding: 25px;
}

.popup-event-title {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.popup-event-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.popup-event-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.popup-event-meta .meta-item svg {
    color: #3b82f6;
    flex-shrink: 0;
}

.popup-event-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-height: 100px;
    overflow-y: auto;
}

.popup-event-actions {
    display: flex;
    gap: 12px;
}

.popup-event-actions a {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-book-tickets {
    background: #3b82f6;
    color: white !important;
}

.btn-book-tickets:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.btn-view-details {
    background: transparent;
    border-color: #3b82f6;
    color: #3b82f6 !important;
}

.btn-view-details:hover {
    background: #f0f4ff;
}

@media (max-width: 768px) {
    .calendar-filters {
        flex-direction: column;
    }
    
    .popup-event-meta {
        grid-template-columns: 1fr;
    }
    
    .popup-event-actions {
        flex-direction: column;
    }
}
