/* Loading State */
.gantt-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
}

.gantt-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Event Registration Gantt Calendar Styles */

.gantt-calendar-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* Fixed Header */
.gantt-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gantt-nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.gantt-nav-controls h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.gantt-nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gantt-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gantt-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gantt-btn:active {
    transform: translateY(0);
}

.gantt-today-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.gantt-today-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.gantt-help-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border-color: #6b7280;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.gantt-help-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.gantt-month-selector {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    min-width: 140px;
}

/* Calendar Body Layout */
.gantt-body {
    display: flex;
    height: 75vh;
    position: relative;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* Fixed Sidebar */
.gantt-sidebar {
    width: 250px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-right: 1px solid #e2e8f0;
    position: relative;
    z-index: 50;
    overflow-y: auto;
    flex-shrink: 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
}

.gantt-sidebar-header {
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gantt-categories {
    flex: 1;
}

.gantt-category {
    border-bottom: 1px solid #e2e8f0;
}

.gantt-category-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    background: #ffffff;
    transition: background-color 0.2s;
}

.gantt-category-header:hover {
    background: #f8fafc;
}

.gantt-category-toggle {
    margin-right: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 0.2s;
    user-select: none;
}

.gantt-category-toggle.collapsed {
    transform: rotate(-90deg);
}

.gantt-category-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.gantt-category-events {
    background: #f9fafb;
    transition: all 0.3s ease;
}

.gantt-category-events.collapsed {
    height: 0;
    overflow: hidden;
}

.gantt-event-row {
    padding: 0.5rem 1rem 0.5rem 2rem;
    font-size: 0.8rem;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}

.gantt-event-row:last-child {
    border-bottom: none;
}

.gantt-event-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Calendar Grid */
.gantt-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Fixed Date Header */
.gantt-date-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    position: sticky;
    top: 0;
    z-index: 40;
    height: 80px;
    flex-shrink: 0;
}

.gantt-month-header {
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.gantt-month-header:last-child {
    border-right: none;
}

.gantt-month-name {
    background: #f8fafc;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.gantt-days-header {
    display: flex;
    background: #ffffff;
}

.gantt-day-header {
    border-right: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    flex-shrink: 0;
}

.gantt-day-header:last-child {
    border-right: none;
}

.gantt-day-header.today {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.gantt-day-header.today .gantt-day-number {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.gantt-day-header.weekend {
    background: #f8fafc;
    color: #94a3b8;
}

.gantt-day-letter {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.125rem;
}

.gantt-day-number {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Scrollable Events Container */
.gantt-events-container {
    flex: 1;
    overflow: auto;
    background: #ffffff;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
}

.gantt-events-grid {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.gantt-category-section {
    transition: all 0.3s ease;
}

.gantt-category-section.collapsed {
    height: 0;
    overflow: hidden;
}

.gantt-event-track {
    position: relative;
    border-bottom: 1px solid #f8fafc;
    min-height: 40px;
}

.gantt-event-bar {
    position: absolute;
    top: 4px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    min-width: 120px;
    backdrop-filter: blur(4px);
}

.gantt-event-bar:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 10;
    cursor: pointer;
}

.gantt-event-bar:hover .gantt-event-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gantt-event-bar:active {
    transform: translateY(-1px) scale(1.01);
}

.gantt-event-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.gantt-overflow-arrow {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.2s ease;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gantt-overflow-arrow:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.3);
}

/* Event Status Colors */
.gantt-event-bar[data-status="active"] {
    background: #10b981;
    border-color: #059669;
}

.gantt-event-bar[data-status="upcoming"] {
    background: #f59e0b;
    border-color: #d97706;
}

.gantt-event-bar[data-status="closed"] {
    background: #9ca3af !important;
    border-color: #6b7280 !important;
    opacity: 0.7;
    color: #374151 !important;
}

/* Featured/Partnership Event Styling */
.gantt-event-bar[data-featured="true"] {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%) !important;
    border: 2px solid #7c3aed !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
    animation: featuredPulse 2s ease-in-out infinite alternate;
    position: relative;
    overflow: visible;
}

.gantt-event-bar[data-featured="true"]:before {
    content: "🎯";
    position: absolute;
    left: -8px;
    top: -8px;
    font-size: 14px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 15;
    animation: bounceIcon 1.5s ease-in-out infinite;
}

.gantt-event-bar[data-featured="true"]:after {
    content: "PARTNER EVENT";
    position: absolute;
    top: -12px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    z-index: 15;
    animation: slideInRight 0.5s ease-out;
}

.gantt-event-bar[data-featured="true"]:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.6), 0 0 0 4px rgba(139, 92, 246, 0.2) !important;
}

.gantt-event-bar[data-featured="true"] .gantt-event-text {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
}

/* Featured event animations */
@keyframes featuredPulse {
    0% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), 0 0 0 3px rgba(139, 92, 246, 0.1);
    }
    100% {
        box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6), 0 0 0 5px rgba(139, 92, 246, 0.15);
    }
}

@keyframes bounceIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.gantt-event-bar[data-status="closed"]:hover {
    opacity: 0.8;
    transform: translateY(-1px) scale(1.01);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gantt-calendar-container {
        margin: 0 -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        overflow-x: auto;
    }
    
    .gantt-sidebar {
        width: 150px;
        min-width: 150px;
    }
    
    .gantt-nav-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .gantt-nav-controls h2 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .gantt-nav-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .gantt-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .gantt-body {
        height: 60vh;
        min-height: 400px;
    }
    
    .gantt-event-bar {
        height: 24px;
        font-size: 0.7rem;
        min-width: 60px;
        padding: 0 6px;
    }
    
    .gantt-day-header {
        padding: 0.125rem;
        min-width: 25px;
    }
    
    .gantt-day-letter {
        font-size: 0.55rem;
    }
    
    .gantt-day-number {
        font-size: 0.75rem;
    }
    
    .gantt-event-title {
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .gantt-sidebar {
        width: 150px;
    }
    
    .gantt-nav-controls h2 {
        font-size: 1rem;
    }
    
    .gantt-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .gantt-day-header {
        min-width: 25px;
    }
    
    .gantt-event-bar {
        height: 24px;
        font-size: 0.7rem;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .gantt-sidebar {
        width: 120px;
    }
    
    .gantt-nav-controls {
        padding: 0.75rem;
    }
    
    .gantt-nav-controls h2 {
        font-size: 0.9rem;
    }
    
    .gantt-nav-buttons {
        gap: 0.5rem;
    }
    
    .gantt-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .gantt-day-header {
        min-width: 20px;
        padding: 0.1rem;
    }
    
    .gantt-day-letter {
        font-size: 0.55rem;
    }
    
    .gantt-day-number {
        font-size: 0.65rem;
    }
    
    .gantt-event-bar {
        height: 20px;
        font-size: 0.65rem;
        min-width: 40px;
        padding: 0 4px;
    }
    
    .gantt-event-title {
        font-size: 0.6rem;
    }
    
    .gantt-body {
        height: 60vh;
    }
}

/* Custom Scrollbars */
.gantt-sidebar::-webkit-scrollbar,
.gantt-events-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.gantt-sidebar::-webkit-scrollbar-track,
.gantt-events-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.gantt-sidebar::-webkit-scrollbar-thumb,
.gantt-events-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.gantt-sidebar::-webkit-scrollbar-thumb:hover,
.gantt-events-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.fc-theme-standard .fc-button-group .fc-button {
    margin: 0 2px;
}

/* Calendar title styling */
.fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Calendar grid borders */
.fc-theme-standard td,
.fc-theme-standard th {
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.fc-theme-standard .fc-scrollgrid {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

.fc-theme-standard .fc-scrollgrid-section > * {
    border-color: rgba(148, 163, 184, 0.2);
}

.fc-col-header-cell {
    background: rgba(30, 41, 59, 0.8);
    font-weight: 600;
    color: #f1f5f9;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.fc-daygrid-day {
    background: rgba(15, 23, 42, 0.3);
    transition: all 0.2s ease;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.fc-daygrid-day:hover {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.fc-day-today {
    background: rgba(59, 130, 246, 0.1) !important;
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.fc-day-today .fc-daygrid-day-number {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    font-weight: 600;
}

.fc-daygrid-day-number {
    font-weight: 500;
    color: #cbd5e1;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.fc-daygrid-day-number:hover {
    color: #3b82f6;
}

.fc-event {
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    margin: 1px 2px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc-event:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.fc-event-tech {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.fc-event-workshop {
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    color: white;
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}

.fc-event-meetup {
    background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    color: white;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
}

.fc-event-conference {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.fc-event-networking {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

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

.fc-event-time {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Event Status Styles */
.fc-event-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.fc-event-upcoming {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.fc-event-closed {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3) !important;
    opacity: 0.7;
}

/* Popup Status Indicators */
.popup-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.popup-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.popup-status.upcoming {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.popup-status.closed {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Event Popup Styles */
.event-popup {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    max-width: 300px;
    min-width: 280px;
    padding: 1.5rem;
    display: none;
    color: #f1f5f9;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s ease;
    pointer-events: none;
}

.event-popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.event-popup-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(15, 23, 42, 0.95);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.event-popup-arrow.top {
    border-top: none;
    border-bottom: 8px solid rgba(15, 23, 42, 0.95);
    top: -8px;
    bottom: auto;
}

.event-popup-content { padding: 1rem; }
.event-popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.popup-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.popup-close-btn:hover {
    color: #f1f5f9;
}

.event-popup-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-popup-details {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.event-popup-details div {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.event-popup-details i {
    color: #3b82f6;
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

.event-popup-description {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 1rem;
    border-left: 2px solid rgba(59, 130, 246, 0.3);
    padding-left: 0.75rem;
}

.event-popup-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-register {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.btn-register:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-google {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    border: 1px solid rgba(66, 133, 244, 0.3);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.btn-google:hover {
    background: linear-gradient(135deg, #3367d6 0%, #2d8f47 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-close {
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-close:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #f1f5f9;
    transform: translateY(-1px);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .fc-toolbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .fc-toolbar-title {
        font-size: 1.2rem;
    }
    
    .fc-button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .fc-event {
        font-size: 0.75rem;
        padding: 1px 4px;
    }
    
    .event-popup {
        max-width: 250px;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .fc-toolbar {
        gap: 0.5rem;
    }
    
    .fc-toolbar-title {
        font-size: 1rem;
    }
    
    .fc-daygrid-day-number {
        font-size: 0.8rem;
    }
    
    .fc-event {
        font-size: 0.7rem;
        margin: 0.5px 1px;
    }
}



/* FullCalendar Custom Timeline Styles */
.fc {
    font-family: 'Poppins', sans-serif;
}

.fc-theme-standard .fc-header-toolbar {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.fc .fc-button {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.fc .fc-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    transform: translateY(-1px);
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: linear-gradient(135deg, #1e40af 0%, #6b21a8 100%);
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    color: #f1f5f9;
}

/* Timeline specific styles */
.fc-theme-standard .fc-scrollgrid,
.fc-theme-standard .fc-resource-timeline {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
}

.fc .fc-resource-lane, .fc .fc-timeline-slot-lane {
    border-color: rgba(148, 163, 184, 0.1);
}

.fc .fc-datagrid-cell-main {
    color: #cbd5e1;
    font-weight: 500;
}

.fc .fc-col-header-cell-cushion {
    color: #f1f5f9;
    font-weight: 600;
}

.fc .fc-day-today {
    background: rgba(59, 130, 246, 0.1);
}

/* Event Bar Status Coloring */
.fc-event {
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.fc-event:hover {
    transform: scale(1.02);
}

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

.fc-event-active {
    background: linear-gradient(135deg, #10b981, #059669); /* Green */
    border-left: 4px solid #34d399;
}

.fc-event-upcoming {
    background: linear-gradient(135deg, #3b82f6, #2563eb); /* Blue */
    border-left: 4px solid #60a5fa;
}

.fc-event-closed {
    background: linear-gradient(135deg, #64748b, #475569); /* Gray */
    border-left: 4px solid #94a3b8;
    opacity: 0.7;
}

/* Event Popup Styles */
.event-popup {
    position: absolute;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    max-width: 320px;
    min-width: 300px;
    display: none;
    color: #f1f5f9;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: all 0.2s ease-out;
    pointer-events: none;
}
.event-popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.event-popup-content { padding: 1rem; }
.event-popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.popup-status { padding: 2px 8px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: white; }
.popup-status.active { background-color: #10b981; }
.popup-status.upcoming { background-color: #3b82f6; }
.popup-status.closed { background-color: #64748b; }
.popup-close-btn { background: none; border: none; font-size: 1.5rem; color: #94a3b8; cursor: pointer; line-height: 1; }
.event-popup-title { font-size: 1.2rem; font-weight: 600; color: #f1f5f9; margin-bottom: 0.75rem; }
.event-popup-details { font-size: 0.9rem; color: #cbd5e1; margin-bottom: 0.75rem; }
.event-popup-details div { display: flex; align-items: center; margin-bottom: 0.25rem; }
.event-popup-details i { color: #3b82f6; margin-right: 0.75rem; width: 16px; text-align: center; }
.event-popup-description { font-size: 0.85rem; color: #94a3b8; line-height: 1.5; margin-bottom: 1rem; border-left: 2px solid rgba(59, 130, 246, 0.3); padding-left: 0.75rem; }
.event-popup-actions .btn-register { width: 100%; text-align: center; display: block; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .fc-toolbar { flex-direction: column; gap: 1rem; }
    .fc-toolbar-title { font-size: 1.2rem; }
}

/* Enhanced Event Popup Styles */
.event-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.event-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.event-popup-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.event-popup-overlay.show .event-popup-container {
    transform: translateY(0) scale(1);
}

.event-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.event-popup-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.event-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.event-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.event-popup-content {
    padding: 1.5rem;
}

.event-popup-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.event-popup-status.status-active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.event-popup-status.status-upcoming {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.event-popup-status.status-closed {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.event-popup-details {
    margin-bottom: 1.5rem;
}

.event-popup-details > div {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.event-popup-details i {
    width: 20px;
    margin-right: 0.75rem;
    color: #3b82f6;
}

.event-popup-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.event-type-tag,
.event-category-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.event-type-tag {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.event-category-tag {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.event-popup-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.event-popup-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-register {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-register:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-register i {
    font-size: 0.875rem;
}

/* Enhanced Popup Responsive Design */
@media (max-width: 768px) {
    .event-popup-container {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .event-popup-header {
        padding: 1rem;
    }
    
    .event-popup-title {
        font-size: 1.1rem;
    }
    
    .event-popup-content {
        padding: 1rem;
    }
    
    .event-popup-tags {
        flex-direction: column;
        align-items: flex-start;
    }
}