/* Calendar Block Styles */

.flowery-calendar {
    max-width: 1000px !important;
}

/* Toggle Buttons */
.flowery-calendar-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
}

.flowery-calendar-toggle-btn {
    padding: 10px 24px;
    border: 1px solid #e5e5e5;
    background-color: #f5f5f5;
    color: var(--flowery-default-font-color, #A68482);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Libre Baskerville', Sans-Serif, serif;
    transition: background-color 0.2s, color 0.2s;
}

.flowery-calendar-toggle-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.flowery-calendar-toggle-btn:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.flowery-calendar-toggle-btn.active {
    background-color: var(--flowery-default-font-color, #A68482);
    color: #fff;
    border-color: var(--flowery-default-font-color, #A68482);
}

.flowery-calendar-toggle-btn:hover:not(.active) {
    background-color: #e8e8e8;
}

/* ==================== */
/* Month View Styles    */
/* ==================== */

.flowery-calendar-month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.flowery-calendar-month-title {
    font-family: 'Libre Baskerville', Sans-Serif, serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--flowery-default-font-color, #A68482);
    min-width: 180px;
    text-align: center;
}

.flowery-calendar-month-prev,
.flowery-calendar-month-next {
    background: none;
    border: 1px solid #c8c8c8;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--flowery-default-font-color, #A68482);
    transition: background-color 0.2s;
}

.flowery-calendar-month-prev:hover,
.flowery-calendar-month-next:hover {
    background-color: #f5f5f5;
}

/* Month Table */
.flowery-month-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.flowery-month-table caption {
    display: none; /* We use the nav title instead */
}

.flowery-month-table thead th {
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--flowery-default-font-color, #A68482);
}

.flowery-month-table tbody td {
    border: 1px solid #e5e5e5;
    padding: 8px 12px;
    vertical-align: middle;
}

.flowery-month-table tbody tr:hover {
    background-color: #fafafa;
}

td.flowery-month-table-flower {
    font-weight: 500;
}

td.flowery-month-table-flower a {
    color: var(--flowery-default-font-color, #A68482);
    text-decoration: none;
}

td.flowery-month-table-flower a:hover {
    text-decoration: underline;
}

.flowery-month-table-empty {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 24px 12px !important;
}

/* Activity dots in month view */
.flowery-activity-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.flowery-dot-voorzaaien {
    background-color: var(--flowery-color-voorzaaien);
}

.flowery-dot-planten {
    background-color: var(--flowery-color-uitplanten);
}

.flowery-dot-bloeien {
    background-color: var(--flowery-color-bloeien);
}

/* Column widths for month table */
th.flowery-month-table-flower,
td.flowery-month-table-flower {
    width: 40%;
}

th.flowery-month-table-voorzaaien,
td.flowery-month-table-voorzaaien,
th.flowery-month-table-planten,
td.flowery-month-table-planten,
th.flowery-month-table-bloeien,
td.flowery-month-table-bloeien {
    width: 20%;
    text-align: center;
}

/* ==================== */
/* Year View Styles     */
/* ==================== */

.flowery-calendar-year-view .flowery-periods {
    margin-top: 0;
    font-size: 14px;
}

.flowery-calendar-year-view .flowery-periods-header,
.flowery-calendar-year-view .flowery-periods-row {
    font-size: 14px;
    height: auto;
    min-height: 36px;
}

.flowery-calendar-year-view .flowery-periods-header .flowery-month-cell {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--flowery-default-font-color, #A68482);
    padding: 8px 4px;
}

.flowery-calendar-year-view .flowery-period-label {
    font-weight: 500;
    font-size: 14px;
    padding: 8px 8px;
    line-height: 1.4;
    min-width: 140px;
}

.flowery-calendar-year-view .flowery-month-cell {
    min-height: 36px;
}

.flowery-calendar-year-view .flowery-period-label a {
    color: inherit;
    text-decoration: none;
}

.flowery-calendar-year-view .flowery-period-label a:hover {
    text-decoration: underline;
}

@media (max-width: 690px) {
    .flowery-calendar-year-view .flowery-periods-header,
    .flowery-calendar-year-view .flowery-periods-row {
        font-size: 12px;
        min-height: 28px;
    }

    .flowery-calendar-year-view .flowery-periods-header .flowery-month-cell {
        font-size: 10px;
        padding: 6px 2px;
    }

    .flowery-calendar-year-view .flowery-period-label {
        font-size: 12px;
        padding: 6px 4px;
        min-width: 100px;
    }

    .flowery-calendar-year-view .flowery-month-cell {
        min-height: 28px;
    }
}

.flowery-year-split {
    border: 0 !important;
}

/* Legend */
.flowery-calendar-legend {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0 1rem 0;
    flex-wrap: wrap;
}

.flowery-calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.flowery-calendar-legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Empty state */
.flowery-calendar-empty {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 690px) {
    .flowery-calendar-month-title {
        font-size: 18px;
        min-width: 140px;
    }

    .flowery-month-table {
        font-size: 12px;
    }

    .flowery-month-table thead th,
    .flowery-month-table tbody td {
        padding: 6px 8px;
    }

    .flowery-calendar-legend {
        gap: 1rem;
    }
}

