/* FullCalendar Wrapper */
.gci-fullcalendar-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* FullCalendar Custom Styling */
.fc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.fc .fc-toolbar-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.fc .fc-button-primary {
    background-color: #8b1a1a !important;
    border-color: #8b1a1a !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.fc .fc-button-primary:hover {
    background-color: #c42a2a !important;
    border-color: #c42a2a !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #6d1515 !important;
    border-color: #6d1515 !important;
}

.fc .fc-daygrid-day-number {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    padding: 8px;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(139, 26, 26, 0.1) !important;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: #8b1a1a;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc .fc-event {
    cursor: pointer;
    border-radius: 4px;
    padding: 2px 4px;
    margin-bottom: 2px;
    font-size: 12px;
    border-left-width: 3px;
}

.fc .fc-event:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.fc .fc-daygrid-event {
    white-space: normal;
}

.fc .fc-event-time {
    font-weight: 600;
}

/* Event Modal */
.gci-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gci-modal-content {
    background-color: white;
    padding: 0;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gci-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 1;
    line-height: 1;
    transition: color 0.3s;
}

.gci-modal-close:hover {
    color: #333;
}

#gci-modal-body {
    padding: 40px 30px 30px;
}

.gci-event-detail h2 {
    margin: 0 0 20px 0;
    font-size: 26px;
    color: #2c3e50;
    font-weight: 700;
    padding-right: 40px;
}

.gci-event-meta {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gci-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
}

.gci-meta-item:last-child {
    margin-bottom: 0;
}

.gci-meta-item .dashicons {
    color: #8b1a1a;
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.gci-event-description-modal {
    margin-bottom: 20px;
}

.gci-event-description-modal h3 {
    font-size: 18px;
    margin: 0 0 12px 0;
    color: #2c3e50;
}

.gci-event-description-modal p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.gci-event-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.gci-btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #8b1a1a 0%, #c42a2a 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(139, 26, 26, 0.3);
}

.gci-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 26, 26, 0.4);
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .gci-fullcalendar-wrapper {
        padding: 10px;
    }
    
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc .fc-toolbar-title {
        font-size: 20px;
    }
    
    .fc .fc-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .gci-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    #gci-modal-body {
        padding: 30px 20px 20px;
    }
    
    .gci-event-detail h2 {
        font-size: 22px;
    }
}

/* Loading State */
.fc .fc-view-harness {
    min-height: 600px;
}

/* Print Styles */
@media print {
    .fc .fc-toolbar,
    .gci-btn-primary {
        display: none;
    }
    
    .fc .fc-event {
        page-break-inside: avoid;
    }
}