/* =========================================================
   FluentCommunity — Scheduled Meetings Sidebar Widget
   ========================================================= */

.fc-sched-widget-wrap {
    padding: 14px 16px 16px;
    margin-bottom: 12px;
    background: var(--fill-bg-primary, #fff);
    border: 1px solid var(--border-color, #e6e6e9);
    border-radius: 12px;
}
.fc-sched-widget-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fc-sched-widget-title::before {
    content: "📅";
    font-size: 14px;
}

/* ── Skeleton loading state ─────────────────────────────── */
.fc-sched-skeleton { display: flex; flex-direction: column; gap: 8px; }
.fc-sched-skel-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 400% 100%;
    animation: fc-sched-shimmer 1.4s ease infinite;
}
.fc-sched-skel-line.short { width: 60%; }
@keyframes fc-sched-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ── Calendar ────────────────────────────────────────────── */
.fc-sched-cal {
    margin-bottom: 14px;
}
.fc-sched-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.fc-sched-cal-label {
    font-size: 13px;
    font-weight: 600;
}
.fc-sched-cal-nav {
    display: flex;
    gap: 4px;
}
.fc-sched-cal-nav button {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color, #e2e2e5);
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    color: inherit;
    padding: 0;
}
.fc-sched-cal-nav button:hover {
    background: var(--color-primary, #7c6af7);
    color: #fff;
    border-color: var(--color-primary, #7c6af7);
}
.fc-sched-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}
.fc-sched-cal-dow {
    font-size: 10px;
    font-weight: 600;
    opacity: .55;
    padding-bottom: 4px;
    text-transform: uppercase;
}
.fc-sched-cal-day {
    position: relative;
    font-size: 12px;
    padding: 5px 0 7px;
    border-radius: 8px;
    cursor: default;
}
.fc-sched-cal-day.is-blank { visibility: hidden; }
.fc-sched-cal-day.is-today {
    background: rgba(124, 106, 247, .12);
    font-weight: 700;
}
.fc-sched-cal-day.has-meeting {
    cursor: pointer;
    font-weight: 600;
}
.fc-sched-cal-day.has-meeting:hover {
    background: rgba(124, 106, 247, .18);
}
.fc-sched-cal-day.is-active {
    background: var(--color-primary, #7c6af7);
    color: #fff;
}
.fc-sched-cal-day .fc-sched-dot {
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-primary, #7c6af7);
}
.fc-sched-cal-day.is-active .fc-sched-dot { background: #fff; }

/* ── Upcoming list ───────────────────────────────────────── */
.fc-sched-list-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .55;
    margin: 0 0 8px;
}
.fc-sched-empty {
    font-size: 12.5px;
    opacity: .6;
    padding: 6px 0;
}
.fc-sched-item {
    border: 1px solid var(--border-color, #ececef);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    transition: box-shadow .15s;
}
.fc-sched-item:last-child { margin-bottom: 0; }
.fc-sched-item.is-live {
    border-color: rgba(229, 62, 62, .45);
    background: rgba(229, 62, 62, .04);
}
.fc-sched-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.fc-sched-item-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}
.fc-sched-item-platform {
    font-size: 10.5px;
    opacity: .6;
    white-space: nowrap;
}
.fc-sched-item-meta {
    font-size: 11.5px;
    opacity: .65;
    margin-top: 3px;
}
.fc-sched-item-desc {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 6px;
    opacity: .85;
    max-height: 3.1em;
    overflow: hidden;
}
.fc-sched-item-desc.is-expanded { max-height: none; }
.fc-sched-item-readmore {
    font-size: 11px;
    color: var(--color-primary, #7c6af7);
    cursor: pointer;
    font-weight: 600;
    margin-top: 3px;
    display: inline-block;
}

/* ── Countdown ───────────────────────────────────────────── */
.fc-sched-countdown {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 11px;
}
.fc-sched-countdown-label {
    opacity: .55;
    font-weight: 600;
}
.fc-sched-countdown-chips {
    display: flex;
    gap: 3px;
}
.fc-sched-countdown-chip {
    background: var(--fill-bg-secondary, #f3f2fb);
    border-radius: 5px;
    padding: 2px 5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
}
.fc-sched-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #e53e3e;
    letter-spacing: .03em;
}
.fc-sched-live-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e53e3e;
    animation: fc-sched-pulse 1.4s ease-in-out infinite;
}
@keyframes fc-sched-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}
.fc-sched-ended-tag {
    font-size: 10.5px;
    font-weight: 600;
    opacity: .5;
}

/* ── Actions row ─────────────────────────────────────────── */
.fc-sched-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
}
.fc-sched-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 7px;
    text-decoration: none;
    color: #fff;
    background: var(--color-primary, #7c6af7);
}
.fc-sched-join-btn:hover { opacity: .9; color: #fff; }
.fc-sched-join-btn.is-disabled {
    background: var(--fill-bg-secondary, #eee);
    color: inherit;
    opacity: .5;
    pointer-events: none;
}

/* Admin-only inline enable/disable switch */
.fc-sched-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 600;
    opacity: .8;
    cursor: pointer;
    user-select: none;
}
.fc-sched-toggle-switch {
    position: relative;
    width: 28px;
    height: 16px;
    border-radius: 20px;
    background: #d3d3d8;
    transition: background .15s;
    flex-shrink: 0;
}
.fc-sched-toggle-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s;
}
.fc-sched-toggle.is-on .fc-sched-toggle-switch {
    background: var(--color-primary, #7c6af7);
}
.fc-sched-toggle.is-on .fc-sched-toggle-switch::after {
    transform: translateX(12px);
}
.fc-sched-toggle.is-busy { opacity: .5; pointer-events: none; }
