/* ── Entity Calendar Widget ────────────────────────────────────────────────── */
/* FullCalendar (v6) injects its own component CSS via JS.                      */
/* This file provides the container shell + design-mode chrome overrides.       */

.entity-calendar-widget {
    display: block;
    width: 100%;
}

.entity-calendar-title {
    margin-bottom: 12px;
}

.entity-calendar-body {
    display: block;
    width: 100%;
}

/* Wrapper that enforces the author-set height (or a sensible auto-height min). */
.entity-calendar-fc-wrapper {
    width: 100%;
    /* FullCalendar needs a non-zero height to initialize in auto mode. */
    min-height: 400px;
}

/* ── Design-mode placeholder ──────────────────────────────────────────────── */

.entity-calendar-skeleton {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: #f5f7fa;
    border: 1px dashed #c0cad8;
    border-radius: 4px;
    min-height: 300px;
}

.entity-calendar-skeleton-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.entity-calendar-skeleton-btn {
    width: 60px;
    height: 24px;
    background: #dde3ea;
    border-radius: 3px;
    animation: entity-calendar-shimmer 1.4s infinite;
}

.entity-calendar-skeleton-title-bar {
    flex: 1;
    height: 20px;
    background: #dde3ea;
    border-radius: 3px;
    animation: entity-calendar-shimmer 1.4s infinite 0.1s;
}

.entity-calendar-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    flex: 1;
}

.entity-calendar-skeleton-cell {
    height: 56px;
    background: #e8ecf0;
    border-radius: 2px;
    animation: entity-calendar-shimmer 1.4s infinite;
}

.entity-calendar-skeleton-cell:nth-child(odd) {
    animation-delay: 0.2s;
}

@keyframes entity-calendar-shimmer {
    0%   { opacity: 1; }
    50%  { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ── Empty-state message (below an empty calendar) ────────────────────────── */

.entity-calendar-empty {
    margin-top: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #6b7a8d;
    background: #f0f4f8;
    border-radius: 4px;
    text-align: center;
}
