/* _ThemeHead: статика (layout / body без фона / видео-фон / модалки / reduced-motion).
   Палитра --zen-*, --app-* кроме padding ячеек и background-image body — inline в _ThemeHead.cshtml. */
:root {
    --sidebar-width: 288px;
    --sidebar-collapsed-width: 72px;
    --topbar-height: 56px;
    --transition-speed: 0.48s;
    --sidebar-ease: cubic-bezier(0.33, 1, 0.68, 1);
    /* Shell collapse: отдельно от палитр (vd-shell.css), чтобы темы не перебивали скорость */
    --vd-shell-chrome-duration: 0.48s;
    --vd-shell-chrome-ease: var(--sidebar-ease);
    --vd-shell-inner-duration: 0.2s;
    --vd-shell-inner-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --vd-shell-inner-delay: 0.14s;
    --vd-shell-inner-delay-collapse: 0s;
    --app-card-padding-y: 0.75rem;
    --app-table-cell-y: 0.45rem;
}

body {
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    transition: background var(--transition-speed) ease-in-out;
}

.app-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

/* Модалки: выше шапки/футера (точные слои — vd-shell-stack.css, --vd-z-modal*) */
.modal {
    z-index: var(--vd-z-modal, 2000) !important;
}

.modal-backdrop {
    z-index: var(--vd-z-modal-backdrop, 1990) !important;
    /* Один слой: фиксированная прозрачность (не накапливать #000 при дублях) */
    --bs-backdrop-opacity: 1;
    background-color: rgba(15, 23, 42, 0.48) !important;
    opacity: 1 !important;
}

.modal-backdrop.show,
.modal-backdrop.fade {
    opacity: 1 !important;
}

.modal.fade .modal-dialog {
    transform: none;
    transition: opacity 0.2s ease;
}

.modal.show .modal-dialog {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --vd-shell-chrome-duration: 0.01s;
        --vd-shell-inner-duration: 0.01s;
        --vd-shell-inner-delay: 0s;
        --vd-shell-inner-delay-collapse: 0s;
        --transition-speed: 0.01s;
    }
}

/* VibeDesk shell styles moved to wwwroot/css/vd-shell.css */
