#calendar-container {
    width: 90%;
    max-width: 900px;
    margin: 20px auto;
    background: #f8f4ec;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ccc;
}

#calendar-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.nav-arrow {
    cursor: pointer;
    padding: 0 10px;
    font-weight: bold;
    user-select: none;
}
#prev-month {
    left: 10;
}
#next-month {
    right: 10;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.weekday {
    font-weight: bold;
    padding: 10px 0;
    background: #ddd4c4;
    border-bottom: 1px solid #bbb;
}

#dates-grid {
    display: contents;
}

.day {
    min-height: 90px;
    border: 1px solid #ccc;
    padding: 4px;
    position: relative;
    background: #fff;
}

.day-number {
    font-size: 0.9em;
    font-weight: bold;
    position: absolute;
    top: 4px;
    left: 4px;
}

.current {
    background: #fff7d1;
}

.event-badge {
    font-size: 0.7em;
    background: #007bff;
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    margin-top: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.clickable {
    cursor: pointer;
}

#event-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background-color: rgba(0,0,0,0.7) !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    
    display: none;
}

.event-modal-content {
    position: relative !important;
    width: 90vw !important;
    height: 90vh !important;
    max-width: none !important;
    max-height: none !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    resize: both !important;
}

.event-modal-content iframe {
    flex: 1 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

.event-modal-content-close-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    font-size: 24px !important;
    color: #fff !important;
    background: #000 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    text-align: center !important;
    line-height: 32px !important;
    cursor: pointer !important;
    z-index: 10 !important;
}
