/* Apply the Montserrat font throughout */
#ethiopian-calendar-container,
#ethiopian-calendar-container * {
    font-family: 'Montserrat', sans-serif;
}

/* Outer container uses full width but is self-contained */
#ethiopian-calendar-container {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    background-color: #f0f8ff;  /* Light background */
    border: 1px solid #839b7b;  /* Accent border */
}

/* Inner container centers content on large screens */
.ec-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header navigation with rounded buttons */
.calendar-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.nav-btn {
    background-color: #0c6a49;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}
.nav-btn:hover {
    background-color: #862b0d;
}
#current-month-display {
    font-size: 20px;
    font-weight: 600;
}

/* Current date & traditional time display */
#current-dates {
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

/* Weekdays header row */
#weekdays-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 5px;
}
.weekday-cell {
    background-color: #839b7b;
    color: #FFFFFF;
    padding: 8px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

/* Calendar grid: 7 equal columns, with a 5px gap */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

/* Day boxes: Using aspect-ratio to force square boxes; use flex to center inner content */
.day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #839b7b;
    box-sizing: border-box;
    padding: 5px;
}
/* For blank (empty) cells */
.day.empty {
    border: none;
}

/* Day number boxes – default background for non–holiday days */
.day .day-number {
    background-color: #0c6a49;
    color: #FFFFFF;
    padding: 6px;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

/* Holiday day boxes – use different background */
.day.holiday .day-number {
    background-color: #862b0d;
}

/* Highlight today's date */
.day.today .day-number {
    background-color: #839b7b !important;
}

/* Holiday notes area */
#holiday-notes-container {
    margin-top: 20px;
    border-top: 1px solid #839b7b;
    padding-top: 10px;
    font-size: 14px;
}
#holiday-notes-container h4 {
    margin-bottom: 5px;
}
#holiday-notes-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#holiday-notes-container li {
    margin-bottom: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    #current-month-display {
        font-size: 18px;
    }
}
