/* === Calendar Wrapper === */
#calendar {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}


/* === Toolbar === */
.fc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.fc-toolbar-title {
    font-size: 20px;
    font-weight: 500;
    color: #1c1c1c;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* === Nav buttons (today, prev, next) === */
.fc .fc-button {
    background-color: transparent;
    color: #333;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 8px;
    box-shadow: none;
    transition: background 0.2s;
}

.fc .fc-button:hover {
    background-color: #f2f2f2;
}

.fc .fc-button.fc-button-active {
    background-color: #eaeaea;
    font-weight: 500;
}

/* === Header Days === */
.fc-col-header-cell {
    color: #444;
    font-weight: 500;
    font-size: 13px;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    text-align: center;
}

/* === Day Cell Numbers === */
.fc-daygrid-day-number {
    font-size: 12px;
    color: #aaa;
    padding: 6px;
    text-align: right;
}

/* === Day Cell Grid === */
.fc-daygrid-day {
    border: none;
    border-bottom: 1px solid #eee;
    border-right: none;
}

/* === Today Highlight === */
.fc .fc-day-today {
    background-color: #f9f9f9;
}

/* === Event Box === */
.fc-event {
    border: none;
    border-radius: 12px;
    padding: 8px;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: block;
}

/* === Blue Event (e.g. Food Safety) === */
.fc-event.blue {
    background-color: #d8f0ff;
    color: #007acc;
}

/* === Yellow Event (e.g. Agriculture) === */
.fc-event.yellow {
    background-color: #fff3cc;
    color: #cc9900;
}

/* === Event Inner Content Style === */
.fc-event-title {
    font-weight: 600;
}

.fc-event-time,
.fc-event-location {
    font-size: 12px;
    color: #666;
    display: block;
}

/* === View Toggle Buttons (Week, Month, Year) === */
.fc-button-group .fc-button {
    background-color: transparent;
    border: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 8px;
    color: #444;
    font-weight: 400;
}

.fc-button-group .fc-button.fc-button-active {
    background-color: #f1f1f1;
    font-weight: 500;
}


/* Date numbers — current month (black) */
.fc-daygrid-day.fc-day:not(.fc-day-other) .fc-daygrid-day-number {
    color: #000; /* Black for current month */
    font-weight: 500;
}

/* Date numbers — other months (gray) */
.fc-daygrid-day.fc-day.fc-day-other .fc-daygrid-day-number {
    color: #040404; /* Light gray for other months */
    font-weight: 400;
}

/* === Responsive Fixes === */
@media (max-width: 768px) {
    .fc-toolbar-title {
        font-size: 16px;
    }

    .fc .fc-button {
        font-size: 12px;
        padding: 4px 10px;
    }
}


/* === Custom Toolbar Wrapper === */
.ecc-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 20px;
}

/* === Left Side Filters (Year + Month) === */
.ecc-calendar-toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

.ecc-calendar-toolbar select {
    appearance: none; /* Remove default arrow */
    background-color: transparent;
    border: none;
    font-size: 18px;
    font-weight: 500;
    color: #111;
    padding: 8px 24px 8px 4px;
    cursor: pointer;
    position: relative;
    outline: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 14px;
}


.ecc-calendar-toolbar select:focus {
    border-color: #aaa;
    outline: none;
}

#ecc-calendar {
    margin-top: 0 !important;
}
body {
    font-family: 'Poppins', sans-serif;
}
.eventModel-wrapper{
     display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;

}
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.event-modal-content {
    background: #fff;
    width: 435px;
    height: 430px;
    padding: 20px;
    border-radius: 10px;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


.event-modal-content img {
    width: 435px;
    height: 208px !important;
    border-radius: 10px !important;
    margin-bottom: 15px !important;
}

h2#modal-title {
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 16px;
    color: #000000;
}

p#modal-description {
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 400;
    margin-bottom: -20px;
}
span.start-date {
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 400;
}
span.end-date {
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 400;
}
span.start_date {
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 500;
}

span.end_date {
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 500;
}