:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
    --brand: #2563eb;
    --mint: #14b8a6;
}

html,
body {
    background: var(--bg);
    color: var(--text);
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

input,
select,
textarea {
    color: #0f172a;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    border-radius: 9999px;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.filter-chip.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.calendar-view-btn {
    transition: all 0.2s ease;
}

.calendar-view-btn.is-active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    max-height: 92vh;
    overflow-y: auto;
}

.fab-button {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 3.5rem;
    height: 3.5rem;
}

#calendar {
    min-height: 68vh;
}

.fc .fc-toolbar {
    display: none;
}

.fc .fc-scrollgrid,
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: var(--border);
}

.fc .fc-col-header-cell {
    background: #fff;
}

.fc .fc-col-header-cell-cushion {
    padding: 0.85rem 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: capitalize;
}

.fc .fc-daygrid-day-number,
.fc .fc-timegrid-axis-cushion,
.fc .fc-timegrid-slot-label-cushion {
    color: #475569;
    font-size: 0.8rem;
}

.fc .fc-timegrid-slot {
    height: 3rem;
}

.fc .fc-timegrid-now-indicator-line {
    border-color: var(--mint);
}

.fc .fc-timegrid-now-indicator-arrow {
    border-color: var(--mint);
    color: var(--mint);
}

.fc .fc-highlight {
    background: rgba(37, 99, 235, 0.08);
}

.fc .fc-event {
    border: 0;
    border-radius: 14px;
    padding: 0.15rem 0.2rem;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.fc .fc-event-main {
    padding: 0.2rem 0.35rem;
    white-space: normal;
}

.fc-event-title,
.fc-event-time {
    font-size: 0.78rem;
}

.fc-event-meta {
    font-size: 0.68rem;
    opacity: 0.92;
    margin-top: 0.1rem;
}

.fc .fc-day-today {
    background: rgba(20, 184, 166, 0.05) !important;
}

@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    #calendar {
        min-height: 60vh;
    }

    .fc .fc-timegrid-slot {
        height: 2.5rem;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 0.75rem;
        padding: 0.6rem 0.2rem;
    }
}
