html {
    min-height: 100%;
    background: #f8fafc;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    letter-spacing: 0;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.drawer-side .menu :where(li > a.active) {
    background: rgba(70, 95, 255, 0.1);
    color: #465fff;
    font-weight: 500;
}

.card {
    border-radius: 0.875rem;
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.btn {
    font-weight: 500;
}

.modal-box {
    border: 1px solid hsl(var(--bc) / 0.08);
}

.fc {
    --fc-border-color: rgba(148, 163, 184, 0.24);
    --fc-button-bg-color: #ffffff;
    --fc-button-border-color: rgba(148, 163, 184, 0.35);
    --fc-button-text-color: #475569;
    --fc-button-hover-bg-color: #f8fafc;
    --fc-button-hover-border-color: rgba(148, 163, 184, 0.55);
    --fc-button-active-bg-color: #eef2ff;
    --fc-button-active-border-color: #c7d2fe;
    --fc-button-active-text-color: #4338ca;
    --fc-today-bg-color: rgba(79, 70, 229, 0.05);
    color: #334155;
    font-size: 0.875rem;
}

.fc .fc-toolbar {
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fc .fc-toolbar-title {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
}

.fc .fc-button {
    border-radius: 0.6rem;
    box-shadow: none;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
}

.fc .fc-daygrid-day-frame {
    min-height: 5.5rem;
}

.fc .fc-event {
    border: 1px solid rgba(79, 70, 229, 0.26);
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    padding: 2px 7px;
}

.fc .fc-event,
.fc .fc-event .fc-event-main,
.fc .fc-event .fc-event-main-frame,
.fc .fc-event .fc-event-title,
.fc .fc-event .fj-event-content,
.fc .fc-event .fj-event-title {
    color: #3730a3 !important;
}

.fc .fc-event.fj-status-completed {
    border-color: rgba(22, 163, 74, 0.25);
    background: #f0fdf4;
    color: #166534;
}

.fc .fc-event.fj-status-completed,
.fc .fc-event.fj-status-completed .fc-event-main,
.fc .fc-event.fj-status-completed .fj-event-title {
    color: #166534 !important;
}

.fc .fc-event.fj-status-moved,
.fc .fc-event.fj-status-repeated {
    border-color: rgba(245, 158, 11, 0.28);
    background: #fffbeb;
    color: #92400e;
}

.fc .fc-event.fj-status-moved,
.fc .fc-event.fj-status-moved .fc-event-main,
.fc .fc-event.fj-status-moved .fj-event-title,
.fc .fc-event.fj-status-repeated,
.fc .fc-event.fj-status-repeated .fc-event-main,
.fc .fc-event.fj-status-repeated .fj-event-title {
    color: #92400e !important;
}

.fc .fc-event.fj-status-extra {
    border-color: rgba(14, 165, 233, 0.28);
    background: #f0f9ff;
    color: #075985;
}

.fc .fc-event.fj-status-extra,
.fc .fc-event.fj-status-extra .fc-event-main,
.fc .fc-event.fj-status-extra .fj-event-title {
    color: #075985 !important;
}

.fj-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: currentColor;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.25;
}

.fj-event-meta {
    display: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(51, 65, 85, 0.62);
    font-size: 0.68rem;
}

.fc-list .fj-event-meta {
    display: block;
}

.fj-mobile-agenda {
    display: none;
}

.fj-mobile-nav {
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 1024px) {
    .drawer-content {
        background: #f8fafc;
    }
}

@media (max-width: 420px) {
    .card-body {
        padding: 1rem;
    }

    .fj-mobile-nav {
        inset-inline: 0.75rem;
    }
}

@media (max-width: 720px) {
    .fj-mobile-agenda {
        display: block;
    }

    #training-calendar {
        display: none;
    }

    .fc .fc-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }

    .fc .fc-toolbar-title {
        font-size: 1rem;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 3.25rem;
    }

    .fc .fc-daygrid-event {
        margin-inline: 1px;
    }

    .fj-event-title {
        max-width: 5rem;
        font-size: 0.7rem;
    }
}
