* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    min-height: 100vh;
    padding: 20px;
}

.calendar-container {
    /*max-width: 1200px;*/
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calendar-header {
    background: linear-gradient(135deg, #008cd0, #0066a3);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.calendar-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.current-month {
    font-size: 1.5rem;
    font-weight: 500;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    overflow-x: scroll;
}

.day-header {
    background: #212529;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.calendar-day {
    min-height: 120px;
    border: 1px solid #e9ecef;
    padding: 8px;
    position: relative;
    background: white;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.day-number {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #212529;
}

.calendar-day.other-month .day-number {
    color: #adb5bd;
}

.event {
    background: #ff9619;
    color: white;
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.event:hover {
    background: #e6851a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 150, 25, 0.3);
}

.today {
    background: rgba(0, 140, 208, 0.1);
    border: 2px solid #008cd0;
}

.today .day-number {
    color: #008cd0;
    font-weight: 700;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #008cd0, #0066a3);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: all 0.3s ease;
}

.close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    line-height: 1.6;
}

.event-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #495057;
}

.event-link-btn {
    background: #ff9619;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.event-link-btn:hover {
    background: #e6851a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 150, 25, 0.3);
}

@media (max-width: 768px) {
    .calendar-title {
        font-size: 2rem;
    }

    .month-nav-text {
        display: none;
    }

    .calendar-grid {
        display: list-item;
    }

    .day-header {
        display: none;
    }

    .calendar-day {
        min-height: 100px;
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }

    .day-header {
        padding: 10px 5px;
        font-size: 0.8rem;
    }
    }
