/* World-Class Family Calendar - Next-Generation Transportation Experience */

/* ============================
   DESIGN SYSTEM FOUNDATIONS
   ============================ */

:root {
    /* Advanced Color System */
    --primary-color: #2ac8c8;
    --primary-gradient: linear-gradient(135deg, #2ac8c8 0%, #25b3b3 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Glassmorphism */
    --glass-background: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: blur(20px);
    
    /* Advanced Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.25);
    
    /* Timing Functions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
}

/* ============================
   WORLD-CLASS CONTAINER
   ============================ */

.world-class-calendar-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    padding-top: 80px; /* Add space for navbar */
    padding-bottom: var(--space-2xl); /* Add bottom padding */
}

.world-class-calendar-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
    z-index: 0;
}

/* ============================
   SMART STATUS BAR
   ============================ */

.smart-status-bar {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--space-sm) var(--space-md);
    margin: 0 var(--space-xl) var(--space-md);
    position: relative;
    z-index: 1000;
    transition: all 0.3s var(--ease-out-expo);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: #1a1a1a;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38ef7d;
    animation: pulse-live 2s infinite;
    box-shadow: 0 0 10px rgba(56, 239, 125, 0.6);
}

@keyframes pulse-live {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.8; 
    }
}

.status-ticker {
    overflow: hidden;
    height: 20px;
    position: relative;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    color: #666666;
    font-size: var(--text-sm);
}

.ticker-item {
    margin-right: var(--space-2xl);
    opacity: 0.9;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.connection-status {
    color: #666666;
    font-size: var(--text-lg);
}

/* ============================
   INTELLIGENT ACTIONS BAR
   ============================ */

.intelligent-actions-bar {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--space-lg);
    margin: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 999;
}

.smart-suggestions {
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.suggestion-carousel {
    display: flex;
    gap: var(--space-md);
    animation: carousel-slide 20s linear infinite;
}

.suggestion-card {
    display: flex;
    align-items: center;
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--space-md);
    min-width: 280px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: var(--shadow-sm);
}

.suggestion-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.35);
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    border-radius: 10px;
    margin-right: var(--space-md);
    font-size: var(--text-lg);
}

.suggestion-content {
    flex-grow: 1;
    color: white;
}

.suggestion-content strong {
    display: block;
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
}

.suggestion-content small {
    opacity: 0.8;
    font-size: var(--text-xs);
}

.suggestion-action {
    margin-left: var(--space-sm);
}

@keyframes carousel-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================
   QUICK ACTIONS SMART
   ============================ */

.quick-actions-smart {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.quick-actions-smart .btn {
    position: relative;
    border: none;
    border-radius: 12px;
    padding: var(--space-md) var(--space-lg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--ease-out-expo);
    overflow: hidden;
    min-height: 48px;
    min-width: 48px;
}

.btn-emergency {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(250, 112, 154, 0.4);
}

.btn-emergency:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(250, 112, 154, 0.6);
}

.btn-schedule-smart {
    background: var(--info-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(79, 172, 254, 0.4);
}

.btn-schedule-smart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(79, 172, 254, 0.6);
}

.btn-voice {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(17, 153, 142, 0.4);
}

.btn-voice:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(17, 153, 142, 0.6);
}

.quick-time {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    animation: pulse-time 2s infinite;
}

@keyframes pulse-time {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================
   REVOLUTIONARY CALENDAR PRO
   ============================ */

.revolutionary-calendar-pro {
    margin: var(--space-2xl) var(--space-xl);
    position: relative;
    z-index: 1;
    padding: 0 var(--space-md); /* Add horizontal padding for better spacing */
}

.calendar-container-pro {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s var(--ease-out-expo);
}

.calendar-pro {
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================
   ADVANCED CALENDAR STYLING
   ============================ */

.fc-header-toolbar {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-xl);
    margin: 0;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.fc-toolbar-title {
    font-size: var(--text-2xl) !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-shadow: none;
}

.fc-button {
    background: white !important;
    border: 2px solid #e5e7eb !important;
    color: #1a1a1a !important;
    border-radius: 10px !important;
    padding: var(--space-sm) var(--space-md) !important;
    font-weight: 600 !important;
    transition: all 0.3s var(--ease-out-expo) !important;
    min-height: 44px !important;
    min-width: 44px !important;
}

.fc-button:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.fc-button-primary:disabled {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: white !important;
    opacity: 1 !important;
}

.fc-col-header-cell {
    background: #f8f9fa !important;
    border: 1px solid #e5e7eb !important;
    color: #666666 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: var(--space-lg) var(--space-sm) !important;
    font-size: var(--text-sm) !important;
}

.fc-daygrid-day {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    min-height: 120px !important;
    transition: all 0.3s var(--ease-out-expo);
}

.fc-daygrid-day:hover {
    background: #f8f9fa !important;
    border-color: var(--primary-color) !important;
}

.fc-day-today {
    background: rgba(42, 200, 200, 0.1) !important;
    border: 2px solid var(--primary-color) !important;
    position: relative;
}

.fc-day-today::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.05;
    pointer-events: none;
}

.fc-daygrid-day-number {
    color: #1a1a1a !important;
    font-weight: 600 !important;
    font-size: var(--text-base) !important;
    padding: var(--space-sm) !important;
}

.fc-day-today .fc-daygrid-day-number {
    background: var(--primary-gradient);
    color: white !important;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-xs);
    font-weight: 700 !important;
    box-shadow: var(--shadow-sm);
}

/* ============================
   ADVANCED EVENT STYLING
   ============================ */

.fc-event {
    border: none !important;
    border-radius: 8px !important;
    margin: 2px 4px !important;
    padding: 6px 10px !important;
    font-size: var(--text-xs) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s var(--ease-out-expo) !important;
    box-shadow: var(--shadow-sm) !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 28px !important;
    display: flex !important;
    align-items: center !important;
}

.fc-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px 0 0 2px;
}

.fc-event:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: var(--shadow-lg) !important;
    z-index: 10 !important;
}

/* Event Type Styling with Gradients */
.fc-event-pickup {
    background: var(--success-gradient) !important;
    color: white !important;
}

.fc-event-dropoff {
    background: var(--warning-gradient) !important;
    color: white !important;
}

.fc-event-emergency {
    background: var(--danger-gradient) !important;
    color: white !important;
    animation: emergency-pulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

.fc-event-school {
    background: var(--info-gradient) !important;
    color: white !important;
}

.fc-event-activity {
    background: var(--primary-gradient) !important;
    color: white !important;
}

@keyframes emergency-pulse {
    0%, 100% { 
        box-shadow: var(--shadow-sm), 0 0 20px rgba(250, 112, 154, 0.6);
    }
    50% { 
        box-shadow: var(--shadow-lg), 0 0 30px rgba(250, 112, 154, 0.8);
    }
}

/* ============================
   LIVE EVENT OVERLAY
   ============================ */

.live-event-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s var(--ease-out-expo) forwards;
}

.event-details-card {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--space-2xl);
    max-width: 400px;
    width: 90%;
    color: white;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    animation: popIn 0.3s var(--ease-out-back) 0.1s forwards;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.event-status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse-status 2s infinite;
}

.status-dot.status-active { background: #38ef7d; }
.status-dot.status-pending { background: #f093fb; }
.status-dot.status-delayed { background: #fee140; }
.status-dot.status-cancelled { background: #fa709a; }

.status-text {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-close-overlay {
    background: none;
    border: none;
    color: white;
    font-size: var(--text-lg);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: 50%;
    transition: all 0.3s var(--ease-out-expo);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-overlay:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.live-tracking {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.tracking-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
}

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

.smart-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.smart-actions .btn {
    border-radius: 8px;
    font-size: var(--text-xs);
    padding: var(--space-sm) var(--space-md);
    transition: all 0.3s var(--ease-out-expo);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================
   SMART INSIGHTS PANEL
   ============================ */

.smart-insights-panel {
    margin: var(--space-2xl) var(--space-xl);
    margin-bottom: var(--space-xl);
    padding: var(--space-xl);
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.insight-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
}

.insight-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-md);
}

.insight-icon {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

.insight-content h6 {
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
    opacity: 0.9;
}

.metric {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.metric-value {
    color: white;
    font-size: var(--text-xl);
    font-weight: 700;
}

.metric-trend {
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================
   ANIMATIONS & KEYFRAMES
   ============================ */

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

@keyframes popIn {
    from { 
        transform: scale(0.9); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

@keyframes pulse-status {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1); 
    }
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

@media (max-width: 768px) {
    .world-class-calendar-container {
        padding-top: 60px; /* Slightly less padding on mobile */
        padding-bottom: var(--space-xl);
    }
    
    .intelligent-actions-bar {
        padding: var(--space-md);
        margin: var(--space-md) var(--space-sm);
        margin-bottom: var(--space-lg);
    }
    
    .suggestion-carousel {
        animation: none;
        overflow-x: auto;
        padding-bottom: var(--space-sm);
    }
    
    .suggestion-card {
        min-width: 240px;
        flex-shrink: 0;
    }
    
    .quick-actions-smart {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .quick-actions-smart .btn {
        width: 100%;
        justify-content: center;
    }
    
    .revolutionary-calendar-pro {
        margin: var(--space-lg) var(--space-sm);
    }
    
    .fc-header-toolbar {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-lg);
    }
}

/* ============================
   RECURRING EVENT MODAL STYLES
   ============================ */

.recurrence-preview-card {
    background: rgba(42, 200, 200, 0.05);
    border: 1px solid rgba(42, 200, 200, 0.2);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-top: var(--space-md);
    transition: all 0.3s var(--ease-out-expo);
}

.recurrence-preview-card:hover {
    background: rgba(42, 200, 200, 0.08);
    border-color: rgba(42, 200, 200, 0.3);
}

.recurrence-preview-card h6 {
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.preview-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

.recurrence-description {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    border-left: 3px solid var(--cyan);
}

.next-occurrences ul {
    margin: 0;
    padding: 0;
}

.next-occurrences li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.next-occurrences li:hover {
    padding-left: var(--space-sm);
    background: rgba(255, 255, 255, 0.02);
}

.next-occurrences li:last-child {
    border-bottom: none;
}

/* Section Headers in Modal */
.section-title {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Day of Week Selector */
.btn-check:checked + .btn-outline-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary {
    min-width: 50px;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* End Condition Radio Options */
input[type="radio"][name="endType"] + label {
    cursor: pointer;
    transition: color 0.3s ease;
}

input[type="radio"][name="endType"]:checked + label {
    color: var(--cyan);
    font-weight: 500;
}

/* Inline Form Controls */
.form-control.d-inline-block {
    vertical-align: middle;
    transition: all 0.3s ease;
}

.form-control.d-inline-block:disabled {
    background: rgba(128, 128, 128, 0.1);
    cursor: not-allowed;
}

.form-control.d-inline-block:focus {
    box-shadow: 0 0 0 2px rgba(42, 200, 200, 0.2);
}

/* Monthly Pattern Options */
.edit-option-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--space-lg);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    text-align: center;
}

.edit-option-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(42, 200, 200, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.edit-option-card i {
    font-size: 2rem;
}

.edit-option-card.danger:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

/* ============================
   TRANSPORTATION EVENT STYLES
   ============================ */

.fc-event.transportation-event {
    border-left: 4px solid rgba(255, 255, 255, 0.3) !important;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
}

.fc-event.transportation-pickup {
    background-color: #10B981 !important;
    border-color: #059669 !important;
}

.fc-event.transportation-dropoff {
    background-color: #F59E0B !important;
    border-color: #D97706 !important;
}

.fc-event.transportation-event::before {
    content: "🚌 ";
    font-size: 1.1em;
    margin-right: 4px;
}

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

/* Transportation event hover effect */
.fc-event.transportation-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Transportation notification badge */
.transport-notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

/* ============================
   ENHANCED COLOR PICKER STYLES
   ============================ */

.color-picker-enhanced {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--ease-out-expo);
}

.color-picker-enhanced:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(42, 200, 200, 0.3);
}

/* Preset Color Palette */
.preset-colors {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.color-preset {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-preset:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-preset.selected {
    transform: scale(1.2);
    border-color: white;
    box-shadow: 0 0 0 3px rgba(42, 200, 200, 0.4);
    z-index: 10;
}

.color-preset.selected::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Custom Color Section */
.custom-color-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.custom-color-section .form-label {
    margin: 0;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    min-width: 90px;
}

.custom-color-section .form-control-color {
    width: 60px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.custom-color-section .form-control-color:hover {
    border-color: rgba(42, 200, 200, 0.6);
    transform: scale(1.05);
}

.custom-color-section .form-control-color:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 200, 200, 0.2);
    outline: none;
}

/* Color Preview */
.color-preview {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s var(--ease-out-expo);
    flex-shrink: 0;
}

.preview-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Enhanced Category Select */
#newEventType,
#editEventType {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    padding: var(--space-md);
    transition: all 0.3s var(--ease-out-expo);
}

#newEventType:focus,
#editEventType:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 200, 200, 0.1);
    outline: none;
}

#newEventType optgroup,
#editEventType optgroup {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-weight: 600;
    padding: var(--space-sm);
}

#newEventType option,
#editEventType option {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: var(--space-sm);
    border: none;
}

#newEventType option:hover,
#editEventType option:hover {
    background: rgba(42, 200, 200, 0.2);
}

/* Animation for color picker section */
.color-picker-enhanced {
    transform-origin: center;
    transition: transform 0.3s var(--ease-out-expo), 
                background 0.3s var(--ease-out-expo),
                border-color 0.3s var(--ease-out-expo);
}

/* Interaction Guide Styling */
.interaction-guide {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: var(--space-sm) var(--space-md);
    border-left: 3px solid var(--primary-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.interaction-guide small {
    font-size: 0.85rem;
    opacity: 0.9;
}

.interaction-guide strong {
    color: var(--primary-color);
}

/* Recurring Events Modal Styling */
.recurrence-preview-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: white;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--space-sm);
}

.edit-option-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--space-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.edit-option-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.edit-option-card.danger:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.4);
}

.edit-option-card i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.edit-option-card h6 {
    color: white;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.edit-option-card p {
    margin: 0;
    font-size: var(--text-sm);
}

/* Recurring Event Form Styling */
#recurringEventModal .modal-dialog {
    max-width: 700px;
}

#recurringEventModal .form-control,
#recurringEventModal .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

#recurringEventModal .form-control:focus,
#recurringEventModal .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 200, 200, 0.1);
    color: white;
}

#recurringEventModal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Days of Week Button Group */
#recurringEventModal .btn-group .btn-check:checked + .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

#recurringEventModal .btn-outline-primary {
    border-color: rgba(42, 200, 200, 0.5);
    color: rgba(42, 200, 200, 0.8);
}

#recurringEventModal .btn-outline-primary:hover {
    background-color: rgba(42, 200, 200, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Preview Content Styling */
.preview-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: var(--space-md);
}

.recurrence-description {
    color: var(--primary-color);
    font-weight: 500;
}

.next-occurrences ul li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xs);
}

/* Recurring Event Indicators */
.fc-event.recurring-event {
    position: relative;
}

.fc-event.recurring-event::before {
    content: '\f021'; /* Font Awesome sync icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    opacity: 0.7;
    z-index: 10;
}

/* Mobile responsive adjustments for color picker */
@media (max-width: 768px) {
    .preset-colors {
        justify-content: center;
    }
    
    .color-preset {
        width: 28px;
        height: 28px;
    }
    
    .custom-color-section {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }
    
    .custom-color-section .form-label {
        min-width: auto;
        text-align: center;
    }
    
    .custom-color-section .form-control-color {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}
    
    .fc-toolbar-title {
        font-size: var(--text-xl) !important;
        text-align: center;
    }
    
    .fc-toolbar-chunk {
        justify-content: center;
    }
    
    .fc-daygrid-day {
        min-height: 80px !important;
    }
    
    .event-details-card {
        margin: var(--space-md);
        padding: var(--space-lg);
    }
    
    .smart-insights-panel {
        margin: var(--space-lg) var(--space-sm);
        padding: var(--space-lg);
    }
    
    .insight-card {
        margin-bottom: var(--space-md);
    }
}

/* ============================
   ACCESSIBILITY ENHANCEMENTS
   ============================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .world-class-calendar-container {
        background: linear-gradient(135deg, #000080 0%, #000040 100%);
    }
    
    .fc-event {
        border: 2px solid white !important;
        font-weight: 700 !important;
    }
    
    .insight-card {
        border: 2px solid white;
    }
}

/* Focus styles for keyboard navigation */
.fc-button:focus,
.fc-event:focus,
.suggestion-card:focus,
.quick-actions-smart .btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* ============================
   PERFORMANCE OPTIMIZATIONS
   ============================ */

.world-class-calendar-container {
    will-change: scroll-position;
    contain: layout style paint;
}

.fc-event,
.suggestion-card,
.insight-card {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize font rendering */
.world-class-calendar-container {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}