/* Modern Calendar Styles */
.calendar-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Hero Section */
.calendar-hero {
    position: relative;
    background: linear-gradient(135deg, #A10000 0%, #FF1000 100%);
    padding: 8rem 0 12rem;
    margin-top: -40px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern.svg');
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

/* Search and Filter Section */
.search-filter-container {
    margin-top: -5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 3;
}

.search-filter-wrapper {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Modern Search Box */
.search-box {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-box:focus-within {
    background: white;
    border-color: #1e3c72;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.1);
}

.search-input {
    border: none !important;
    background: transparent !important;
    padding: 1.2rem 3.5rem !important;
    font-size: 1.1rem !important;
    width: 100% !important;
    border-radius: 12px !important;
    color: #2c3e50 !important;
}

.search-input::placeholder {
    color: #95a5a6;
    opacity: 0.8;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #1e3c72;
    font-size: 1.2rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: #2a5298;
}

.search-clear {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    padding: 0.3rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-clear:hover {
    color: #e74c3c;
    transform: translateY(-50%) scale(1.1);
}

/* Loading State */
.timeline.loading .search-box {
    opacity: 0.7;
    pointer-events: none;
}

/* Filter Buttons */
.filter-buttons-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.filter-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-filter {
    position: relative;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    border: none;
    color: #1a1a1a;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-filter .btn-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-filter:hover .btn-background,
.btn-filter.active .btn-background {
    opacity: 1;
}

.btn-filter:hover,
.btn-filter.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,60,114,0.2);
}

.btn-filter i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-filter:hover i,
.btn-filter.active i {
    transform: scale(1.1);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(30, 60, 114, 0.1) 0%,
        rgba(42, 82, 152, 0.6) 50%,
        rgba(30, 60, 114, 0.1) 100%);
}

.timeline-month {
    text-align: center;
    margin: 3rem 0;
    position: relative;
}

.timeline-month h3 {
    display: inline-block;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
}

.timeline-item {
    width: calc(50% - 30px);
    margin: 2rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) {
    margin-left: auto;
    padding-left: 3rem;
}

.timeline-item:nth-child(even) {
    margin-right: auto;
    padding-right: 3rem;
}

.timeline-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px white, 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    left: -20px;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: -20px;
}

.timeline-dot i {
    color: white;
    font-size: 1.2rem;
}

/* Updated color schemes for dots */
.bg-academic {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.bg-exam {
    background: linear-gradient(135deg, #A10000 0%, #FF1000 100%);
}

.bg-holiday {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

/* Event Card Styles */
.event-card {
    background: white;
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(233, 161, 6, 0.87);
}

.event-card .card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.event-date i {
    color: #1e3c72;
}

.card-text {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Updated Badge Styles */
.badge {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-academic {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.badge-exam {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.badge-holiday {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 2rem 0;
}

.empty-state h3 {
    color: #2c3e50;
    font-weight: 600;
    margin: 1.5rem 0;
}

.empty-state p {
    color: #7f8c8d;
}

.empty-image {
    width: 180px;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        padding-left: 2rem !important;
        padding-right: 0 !important;
    }

    .timeline-dot {
        left: -45px !important;
        right: auto !important;
    }

    .timeline-month h3 {
        font-size: 1.1rem;
        padding: 0.6rem 1.5rem;
    }
}

/* Add smooth transitions for events */
.calendar-event {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Loading animation */
.timeline.loading {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.timeline.loading .calendar-event {
    background: #f6f7f8;
    background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
    background-size: 800px 104px;
    animation: shimmer 1.2s infinite linear;
} 