.csdf-admin-page {
    max-width: 980px;
}

.csdf-admin-page .widefat {
    margin-top: 1rem;
}

.csdf-admin-page .widefat th,
.csdf-admin-page .widefat td {
    vertical-align: middle;
}

.csdf-calendar-wrapper {
    max-width: 980px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #eef1f5;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.csdf-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef1f5;
    margin-bottom: 1rem;
}

.csdf-month-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #162033;
    text-transform: capitalize;
}

.csdf-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: #f7f9fc;
    color: #162033;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.csdf-nav-link:hover {
    background: #edf2f7;
    transform: translateY( -1px );
}

.csdf-calendar-grid {
    display: grid;
    grid-template-columns: repeat( 7, minmax( 0, 1fr ) );
    gap: 0.8rem;
}

.csdf-day-name {
    padding: 0.45rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.csdf-day {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 96px;
    padding: 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.04);
    background: var( --csdf-color-weekday, #e8e8e8 );
    color: #2f3341;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.csdf-day:hover {
    transform: translateY( -2px );
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.csdf-day--empty {
    min-height: 96px;
    border: 1px dashed #edf2f7;
    background: transparent;
    box-shadow: none;
}

.csdf-day--weekend {
    color: #ffffff;
}

.csdf-day--available {
    background: var( --csdf-color-available, #2e8b57 );
}

.csdf-day--reserved {
    background: var( --csdf-color-reserved, #c0392b );
}

.csdf-day--option {
    background: var( --csdf-color-option, #f39c12 );
}

.csdf-day-number {
    font-size: 1rem;
    font-weight: 700;
}

.csdf-day-status {
    font-size: 0.76rem;
    font-weight: 600;
    opacity: 0.95;
}

.csdf-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #eef1f5;
}

.csdf-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #475569;
}

.csdf-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 999px;
}

.csdf-legend-swatch--available {
    background: var( --csdf-color-available, #2e8b57 );
}

.csdf-legend-swatch--reserved {
    background: var( --csdf-color-reserved, #c0392b );
}

.csdf-legend-swatch--option {
    background: var( --csdf-color-option, #f39c12 );
}

@media ( max-width: 768px ) {
    .csdf-calendar-wrapper {
        padding: 1rem;
        border-radius: 16px;
    }

    .csdf-calendar-grid {
        gap: 0.55rem;
    }

    .csdf-day {
        min-height: 74px;
        padding: 0.55rem;
    }

    .csdf-day--empty {
        min-height: 74px;
    }

    .csdf-calendar-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media ( max-width: 480px ) {
    .csdf-calendar-grid {
        gap: 0.4rem;
    }

    .csdf-day {
        min-height: 62px;
        padding: 0.45rem;
    }

    .csdf-day--empty {
        min-height: 62px;
    }

    .csdf-day-name {
        font-size: 0.78rem;
    }

    .csdf-day-number {
        font-size: 0.9rem;
    }

    .csdf-day-status {
        font-size: 0.7rem;
    }
}