/* FullCalendar 6 — skin Công nghệ của vetal.IO (mobile-first) */
.imc-shell {
    --imc-accent: #7c3aed;
    --imc-accent-soft: rgba(124, 58, 237, 0.12);
    --imc-accent-glow: rgba(124, 58, 237, 0.28);
    border-radius: 1rem;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 48%, rgba(245, 243, 255, 0.4) 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 12px 40px -16px var(--imc-accent-glow);
    overflow: hidden;
    padding: 0.75rem;
}
@media (min-width: 640px) {
    .imc-shell { padding: 1rem 1.125rem 1.125rem; }
}
.imc-shell--orange {
    --imc-accent: #ea580c;
    --imc-accent-soft: rgba(234, 88, 12, 0.12);
    --imc-accent-glow: rgba(234, 88, 12, 0.22);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 48%, rgba(255, 247, 237, 0.45) 100%);
}

.imc-shell .fc {
    --fc-border-color: #e5e7eb;
    --fc-today-bg-color: var(--imc-accent-soft);
    --fc-neutral-bg-color: transparent;
    --fc-page-bg-color: transparent;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
}
.imc-shell .fc-toolbar-title {
    font-size: 1.0625rem !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}
.imc-shell .fc-button {
    border-radius: 0.625rem !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    padding: 0.4rem 0.65rem !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    color: #374151 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.imc-shell .fc-button:hover:not(:disabled) {
    background: var(--imc-accent-soft) !important;
    border-color: color-mix(in srgb, var(--imc-accent) 35%, #e5e7eb) !important;
    color: var(--imc-accent) !important;
}
.imc-shell .fc-button-primary:not(:disabled).fc-button-active,
.imc-shell .fc-button-primary:not(:disabled):active {
    background: var(--imc-accent) !important;
    border-color: var(--imc-accent) !important;
    color: #fff !important;
}
.imc-shell .fc-col-header-cell-cushion,
.imc-shell .fc-daygrid-day-number {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 0.35rem 0.45rem;
}
.imc-shell .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: var(--imc-accent);
    font-weight: 800;
}
.imc-shell .fc-daygrid-day-frame {
    min-height: 3.25rem;
}
@media (min-width: 768px) {
    .imc-shell .fc-daygrid-day-frame { min-height: 4.5rem; }
}
.imc-shell .fc-event.imc-event-official {
    border: 2px dashed rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.35);
}
.imc-shell .fc-event {
    border: none !important;
    border-radius: 0.375rem !important;
    padding: 1px 4px !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}
.imc-shell .fc-list-event-title,
.imc-shell .fc-list-event-time {
    font-weight: 600;
}
.imc-shell .fc-list-day-cushion {
    background: #f9fafb !important;
    font-weight: 700;
    color: #374151;
}
.imc-shell .fc-more-link {
    color: var(--imc-accent) !important;
    font-weight: 700;
}
.imc-view-toggle {
    display: inline-flex;
    padding: 0.2rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.imc-view-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.55rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    min-height: 40px;
}
.imc-view-toggle button[aria-pressed="true"] {
    background: #fff;
    color: var(--imc-accent, #7c3aed);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.imc-view-toggle--orange button[aria-pressed="true"] {
    color: #ea580c;
}
.imc-day-sheet {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.imc-day-sheet.imc-day-sheet--open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}
.imc-day-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}
.imc-day-sheet-panel {
    position: relative;
    max-height: min(78vh, 32rem);
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
    padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
.imc-day-sheet--open .imc-day-sheet-panel {
    transform: translateY(0);
}
@media (min-width: 640px) {
    .imc-day-sheet { justify-content: center; align-items: center; padding: 1rem; }
    .imc-day-sheet-panel {
        max-width: 28rem;
        width: 100%;
        border-radius: 1.25rem;
        max-height: min(85vh, 36rem);
        transform: translateY(12px) scale(0.98);
    }
    .imc-day-sheet--open .imc-day-sheet-panel {
        transform: translateY(0) scale(1);
    }
}
.imc-day-sheet-handle {
    width: 2.5rem;
    height: 0.25rem;
    border-radius: 999px;
    background: #e5e7eb;
    margin: 0 auto 0.75rem;
}
@media (min-width: 640px) {
    .imc-day-sheet-handle { display: none; }
}
.imc-day-sheet-list {
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.imc-day-sheet-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    background: #fafafa;
    transition: border-color 0.12s, background 0.12s;
}
.imc-day-sheet-item:hover {
    border-color: color-mix(in srgb, var(--imc-accent, #7c3aed) 30%, #e5e7eb);
    background: #fff;
}
