        :root {
            --primary-green: #3564ff;
            --light-green: #1956fd;
            --dark-green: #02007a;
            --primary-yellow: hsl(4, 100%, 50%);
            --light-yellow: #ff3300;
            --primary-orange: #ff3300;
            --light-orange: #ff3300;
            --white: #ffffff;
            --light-gray: #f9f9f9;
            --dark-gray: #333;
            --text-color: #444;
            --border-color: #e0e0e0;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: var(--light-gray);
            color: var(--text-color);
            line-height: 1.6;
        }
        
        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header */
        .header {
            background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
            color: white;
            padding: 60px 0 40px;
            text-align: center;
            margin-bottom: 40px;
        }
        
        .header h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
        }
        
        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .back-to-home {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: white;
            text-decoration: none;
            margin-top: 20px;
            padding: 10px 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50px;
            transition: all 0.3s;
        }
        
        .back-to-home:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(-5px);
        }
        
        /* Controls Section */
        .controls {
            background: white;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }
        
        .controls-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .view-toggle {
            display: flex;
            gap: 10px;
            background: var(--light-gray);
            padding: 5px;
            border-radius: 8px;
        }
        
        .view-btn {
            padding: 8px 20px;
            border: none;
            border-radius: 6px;
            background: transparent;
            color: var(--text-color);
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .view-btn.active {
            background: var(--primary-green);
            color: white;
        }
        
        /* Search and Filter */
        .search-filter {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .search-box {
            position: relative;
        }
        
        .search-box input {
            width: 100%;
            padding: 12px 45px 12px 15px;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s;
        }
        
        .search-box input:focus {
            border-color: var(--primary-green);
            outline: none;
            box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
        }
        
        .search-box i {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #888;
        }
        
        .filter-select {
            padding: 12px 15px;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 1rem;
            background: white;
            width: 100%;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .filter-select:focus {
            border-color: var(--primary-green);
            outline: none;
        }
        
        /* Event Type Filters */
        .type-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }
        
        .type-filter {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            border: 2px solid var(--border-color);
            border-radius: 20px;
            background: white;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .type-filter:hover {
            transform: translateY(-2px);
        }
        
        .type-filter.active {
            border-color: currentColor;
        }
        
        /* Event Grid View */
        .events-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 25px;
            margin-bottom: 50px;
        }
        
        .event-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            transition: all 0.3s;
        }
        
        .event-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.12);
        }
        
        .event-image {
            height: 200px;
            overflow: hidden;
            position: relative;
        }
        
        .event-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }
        
        .event-card:hover .event-image img {
            transform: scale(1.05);
        }
        
        .event-type-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            color: white;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .event-date-badge {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background: white;
            padding: 8px 12px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }
        
        .event-day {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--dark-green);
            line-height: 1;
        }
        
        .event-month {
            font-size: 0.9rem;
            color: #666;
            text-transform: uppercase;
        }
        
        .event-content {
            padding: 25px;
        }
        
        .event-header {
            margin-bottom: 15px;
        }
        
        .event-title {
            font-size: 1.3rem;
            color: var(--dark-gray);
            margin-bottom: 8px;
            line-height: 1.4;
        }
        
        .event-meta {
            display: flex;
            gap: 15px;
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 15px;
        }
        
        .event-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .event-description {
            color: var(--text-color);
            margin-bottom: 20px;
            line-height: 1.6;
        }
        
        .event-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 15px;
            border-top: 1px solid var(--border-color);
        }
        
        .event-status {
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
        }
        
        .status-upcoming {
            background: #E8F5E9;
            color: #2E7D32;
        }
        
        .status-ongoing {
            background: #FFF3E0;
            color: #EF6C00;
            animation: pulse 2s infinite;
        }
        
        .status-completed {
            background: #F5F5F5;
            color: #616161;
        }
        
        .status-cancelled {
            background: #FFEBEE;
            color: #C62828;
        }
        
        .event-actions {
            display: flex;
            gap: 10px;
        }
        
        .action-btn {
            padding: 8px 15px;
            border-radius: 6px;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .btn-primary {
            background: var(--primary-green);
            color: white;
        }
        
        .btn-primary:hover {
            background: var(--dark-green);
        }
        
        .btn-outline {
            border: 2px solid var(--primary-green);
            color: var(--primary-green);
            background: transparent;
        }
        
        .btn-outline:hover {
            background: var(--primary-green);
            color: white;
        }
        
        /* Calendar View */
        .calendar-view {
            display: none;
            margin-bottom: 50px;
        }
        
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 1px;
            background: var(--border-color);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            overflow: hidden;
        }
        
        .calendar-header {
            background: var(--primary-green);
            color: white;
            text-align: center;
            padding: 15px;
            font-weight: 600;
        }
        
        .calendar-day {
            background: white;
            min-height: 120px;
            padding: 10px;
            position: relative;
        }
        
        .calendar-day.empty {
            background: var(--light-gray);
        }
        
        .calendar-day .day-number {
            font-weight: bold;
            color: var(--dark-gray);
            margin-bottom: 5px;
        }
        
        .calendar-day.has-events {
            background: #FFF8E1;
        }
        
        .calendar-event {
            background: var(--light-green);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            margin-bottom: 4px;
            font-size: 0.8rem;
            cursor: pointer;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .calendar-event:hover {
            opacity: 0.9;
        }
        
        .calendar-event.more {
            background: var(--primary-orange);
            text-align: center;
        }
        
        /* Event Type Colors */
        .type-academic { background: #4CAF50; }
        .type-sports { background: #2196F3; }
        .type-cultural { background: #9C27B0; }
        .type-meeting { background: #FF9800; }
        .type-holiday { background: #F44336; }
        .type-exam { background: #795548; }
        .type-other { background: #607D8B; }
        
        .type-text-academic { color: #4CAF50; }
        .type-text-sports { color: #2196F3; }
        .type-text-cultural { color: #9C27B0; }
        .type-text-meeting { color: #FF9800; }
        .type-text-holiday { color: #F44336; }
        .type-text-exam { color: #795548; }
        .type-text-other { color: #607D8B; }
        
        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 40px 0;
        }
        
        .page-link {
            padding: 10px 18px;
            background: white;
            border: 2px solid var(--border-color);
            color: var(--dark-green);
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .page-link:hover {
            background: var(--light-green);
            color: white;
            border-color: var(--light-green);
        }
        
        .page-link.active {
            background: var(--primary-green);
            color: white;
            border-color: var(--primary-green);
        }
        
        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            margin: 40px 0;
        }
        
        .empty-state i {
            font-size: 4rem;
            color: #ddd;
            margin-bottom: 20px;
        }
        
        .empty-state h3 {
            color: var(--dark-green);
            margin-bottom: 10px;
            font-size: 1.5rem;
        }
        
        .empty-state p {
            color: #666;
            max-width: 500px;
            margin: 0 auto 30px;
        }
        
        /* Pulse Animation */
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(239, 108, 0, 0.4);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(239, 108, 0, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(239, 108, 0, 0);
            }
        }
        
        /* Responsive Design */
        @media (max-width: 1200px) {
            .events-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2.2rem;
            }
            
            .header {
                padding: 40px 0 30px;
            }
            
            .controls-header {
                flex-direction: column;
                align-items: stretch;
            }
            
            .events-grid {
                grid-template-columns: 1fr;
            }
            
            .calendar-view {
                overflow-x: auto;
            }
            
            .calendar-grid {
                min-width: 700px;
            }
            
            .type-filters {
                justify-content: center;
            }
        }
        
        @media (max-width: 576px) {
            .container {
                padding: 0 15px;
            }
            
            .header h1 {
                font-size: 1.8rem;
            }
            
            .event-meta {
                flex-direction: column;
                gap: 8px;
            }
            
            .event-footer {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }
            
            .event-actions {
                width: 100%;
                justify-content: space-between;
            }
        }
/* ============================================
   EVENT MODAL RESPONSIVE CSS
   Mobile-first, responsive design
============================================= */

/* Modal backdrop */
.modal.fade {
    transition: opacity 0.3s ease-in-out;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Modal dialog container */
.modal-dialog {
    margin: 1rem;
    max-width: 100%;
    transition: transform 0.3s ease-out;
}

/* Center and scrollable modal */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 2rem);
}

.modal-dialog-scrollable {
    max-height: calc(100vh - 2rem);
}

/* Main modal content container */
.modal-content.event-modal {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background-color: #fff;
    animation: modalSlideIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal header */
.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

/* Close button */
.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg+xml") center/1.5em auto no-repeat;
    opacity: 0.7;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0.5rem;
    margin: 0;
    transition: all 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Modal body */
.modal-body {
    padding: 0;
}

/* Event banner image */
.event-modal-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.event-modal-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.event-modal-banner:hover img {
    transform: scale(1.05);
}

/* Event info section */
.event-modal-info {
    padding: 1.5rem;
}

/* Event meta grid */
.event-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.event-meta-grid div {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #555;
}

.event-meta-grid i {
    color: #4a6cf7;
    width: 1.5rem;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    text-align: center;
}

.event-meta-grid span {
    font-weight: 500;
    color: #333;
}

/* Event status badge */
.event-status-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Status colors - you can add classes dynamically via JS */
.event-status-badge.upcoming {
    background-color: rgba(74, 108, 247, 0.1);
    color: #4a6cf7;
    border: 1px solid rgba(74, 108, 247, 0.3);
}

.event-status-badge.ongoing {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.event-status-badge.completed {
    background-color: rgba(155, 155, 155, 0.1);
    color: #666;
    border: 1px solid rgba(155, 155, 155, 0.3);
}

.event-status-badge.cancelled {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Divider */
hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid #f0f0f0;
    opacity: 1;
}

/* Event description */
#eventModalDescription {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

#eventModalDescription p {
    margin-bottom: 1rem;
}

#eventModalDescription p:last-child {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
============================================= */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .modal-dialog {
        margin: 1.75rem auto;
        max-width: 500px;
    }
    
    .modal-dialog.modal-lg {
        max-width: 800px;
    }
    
    .event-modal-banner {
        height: 250px;
    }
    
    .event-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .modal-header {
        padding: 2rem 2rem 1.5rem;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .event-modal-info {
        padding: 2rem;
    }
    
    .event-modal-banner {
        height: 300px;
    }
    
    .event-meta-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .event-meta-grid div {
        font-size: 1.05rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .modal-dialog.modal-lg {
        max-width: 900px;
    }
    
    .modal-header {
        padding: 2.5rem 2.5rem 2rem;
    }
    
    .event-modal-info {
        padding: 2.5rem;
    }
    
    #eventModalDescription {
        font-size: 1.1rem;
        line-height: 1.8;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .modal-dialog.modal-lg {
        max-width: 1000px;
    }
    
    .event-modal-banner {
        height: 350px;
    }
}

/* ============================================
   DARK MODE SUPPORT
============================================= */
@media (prefers-color-scheme: dark) {
    .modal-content.event-modal {
        background-color: #1e1e1e;
        color: #f0f0f0;
    }
    
    .modal-header {
        background-color: #1e1e1e;
        border-bottom-color: #333;
    }
    
    .modal-title {
        color: #fff;
    }
    
    .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }
    
    .event-meta-grid div {
        color: #aaa;
    }
    
    .event-meta-grid span {
        color: #ddd;
    }
    
    #eventModalDescription {
        color: #ccc;
    }
    
    hr {
        border-top-color: #333;
    }
    
    .event-status-badge.upcoming {
        background-color: rgba(74, 108, 247, 0.2);
    }
    
    .event-status-badge.ongoing {
        background-color: rgba(46, 204, 113, 0.2);
    }
    
    .event-status-badge.completed {
        background-color: rgba(155, 155, 155, 0.2);
    }
    
    .event-status-badge.cancelled {
        background-color: rgba(231, 76, 60, 0.2);
    }
}

/* ============================================
   ACCESSIBILITY & INTERACTION ENHANCEMENTS
============================================= */

/* Focus styles for keyboard navigation */
.modal-content.event-modal:focus {
    outline: 2px solid #4a6cf7;
    outline-offset: 2px;
}

.btn-close:focus {
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.3);
    outline: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .modal-content.event-modal,
    .btn-close,
    .event-modal-banner img {
        transition: none;
    }
    
    .modal.fade {
        transition: opacity 0.15s ease-in-out;
    }
    
    @keyframes modalSlideIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .event-status-badge {
        border-width: 2px;
    }
    
    .modal-header {
        border-bottom-width: 2px;
    }
    
    hr {
        border-top-width: 2px;
    }
}

/* Print styles */
@media print {
    .modal-dialog {
        max-width: 100%;
        margin: 0;
    }
    
    .modal-content.event-modal {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .btn-close {
        display: none;
    }
    
    .event-modal-banner {
        max-height: 200px;
    }
}

.day-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-event-card {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.day-event-info h6 {
    margin: 0;
    font-size: 15px;
}

.day-event-info small {
    color: #777;
}

.day-event-actions {
    display: flex;
    gap: 8px;
}

.day-event-actions button {
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.btn-view { background: #8b5e3c; color: #fff; }
.btn-share { background: #f1f1f1; }
