/* Aiduca Formation Calendar Styles */

.aiduca-formation-calendar {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    /* Space between columns */
    justify-content: center;
    margin: 40px 0;
}

.calendar-column {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.calendar-header {
    background-color: #4B5A6F;
    /* Dark blue-grey from mockup */
    color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 1.125rem;
    /* 18px */
    font-weight: 500;
}

.calendar-body {
    padding: 10px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calendar-week-header {
    background-color: #f1f5f9;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.825rem;
    /* ~13px */
    font-weight: 600;
    color: #64748b;
    margin-top: 10px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.calendar-date-wrapper {
    display: flex;
    flex-direction: row;
}

.calendar-date {
    font-weight: 500;
    color: #1f2937;
    font-size: 1rem;
    white-space: nowrap;
    line-height: 1.25;
}

.calendar-duration {
    margin-left: 5px;
    font-size: 0.75rem;
    /* 12px */
    color: #9ca3af;
    font-weight: 400;
}

.calendar-badge {
    padding: 6px 16px;
    border-radius: 9999px;
    /* Pill shape */
    color: #ffffff;
    font-size: 0.875rem;
    /* 14px */
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}

.calendar-badge:hover {
    opacity: 0.9;
    color: #ffffff;
    text-decoration: none;
}

/* Colors based on mockup */
.badge-green {
    background-color: #3ccb3e;
    /* Bright green */
    color: #fff;
}

.badge-dark {
    background-color: #374151;
    /* Dark grey */
    color: #fff;
}

.badge-default {
    background-color: #9ca3af;
    /* Grey default */
    color: #fff;
}

/* Expanded Palette for Grid View */
.badge-black {
    background-color: #000000;
    color: #fff;
}

.badge-orange {
    background-color: #e67e22;
    color: #fff;
}

.badge-yellow {
    background-color: #f1c40f;
    color: #000;
}

.badge-lime {
    background-color: #d4e157;
    color: #000;
}

.badge-magenta {
    background-color: #e91e63;
    color: #fff;
}

.badge-purple {
    background-color: #9b59b6;
    color: #fff;
}

.badge-blue {
    background-color: #3f51b5;
    color: #fff;
}

.badge-cyan {
    background-color: #00bcd4;
    color: #000;
}

.badge-beige {
    background-color: #d7ccc8;
    color: #000;
}

.calendar-divider {
    border: 0;
    border-top: 2px solid #e5e7eb;
    /* Thicker line as in some designs */
    margin: 0;
    /* Handled by flex gap */
    width: 100%;
}

/* Specific adjustment: Mockup has lines separating items, except the last? */
.calendar-body>.calendar-divider:last-child {
    display: none;
}

.calendar-empty {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 20px 0;
}

/* ------------------------------------------------------------------
   GRID VIEW STYLES (Table based)
   ------------------------------------------------------------------ */

.aiduca-calendar-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    margin: 40px 0;
    font-family: sans-serif;
    font-size: 13px;
}

.calendar-grid-month {
    border: 1px solid #7f8c8d;
    background: #fff;
    min-width: 300px;
}

.calendar-grid-header {
    background-color: #ecf0f1;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-bottom: 1px solid #7f8c8d;
    font-size: 14px;
}

.calendar-grid-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-grid-table th,
.calendar-grid-table td {
    border: 1px solid #7f8c8d;
    padding: 4px;
    position: relative;
    height: 24px;
    /* fixed height for rows */
    box-sizing: border-box;
    vertical-align: middle;
}

/* Day Column */
.calendar-grid-day-cell {
    width: 50px;
    white-space: nowrap;
    background-color: #f8f9fa;
    color: #2c3e50;
    font-size: 11px;
    text-align: center;
}

/* Weekend Styling */
.calendar-grid-row-weekend td {
    background-color: #bdc3c7;
    /* Darker grey for weekends */
}

.calendar-grid-row-weekend .calendar-grid-day-cell {
    background-color: #aeb6bf;
}


/* Event Cells in Grid */
.calendar-grid-event {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 4px;
    line-height: 22px;
    /* Center text vertically */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
}

.calendar-grid-event:hover {
    opacity: 0.85;
}