/* ══════════════════════════════════════════════════════════
   ФОРПОСТ — Современная корпоративная стилистика 2026
   Glassmorphism + Gradient + Micro-interactions
   Цвета: #003087 (синий), #0078D4 (голубой), акценты
   ══════════════════════════════════════════════════════════ */

/* ── Переменные ────────────────────────────────────────── */

:root {
    --hfm-blue:       #003087;
    --hfm-sky:        #0078D4;
    --hfm-accent:     #00b4d8;
    --hfm-light:      #f0f4f8;
    --hfm-gray:       #64748b;
    --hfm-dark:       #0f172a;
    --hfm-glass:      rgba(255, 255, 255, 0.72);
    --hfm-glass-border: rgba(255, 255, 255, 0.3);
    --hfm-radius:     16px;
    --hfm-radius-sm:  10px;
    --hfm-shadow:     0 4px 24px rgba(0, 48, 135, 0.08);
    --hfm-shadow-lg:  0 8px 40px rgba(0, 48, 135, 0.12);
    --hfm-shadow-glow: 0 0 40px rgba(0, 120, 212, 0.15);
    --hfm-transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Базовая типографика ───────────────────────────────── */

body {
    background: var(--hfm-light);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    line-height: 1.6;
}

/* Тонкий фоновый паттерн */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 120, 212, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 48, 135, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 180, 216, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--hfm-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

a {
    color: var(--hfm-sky);
    transition: color var(--hfm-transition);
}

a:hover {
    color: var(--hfm-blue);
}

/* ── Навигация (стеклянный эффект) ─────────────────────── */

.hfm-navbar {
    background: linear-gradient(135deg,
        rgba(0, 48, 135, 0.92) 0%,
        rgba(0, 120, 212, 0.88) 50%,
        rgba(0, 180, 216, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 4px 20px rgba(0, 48, 135, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.hfm-navbar .navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.hfm-navbar .nav-link {
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: all var(--hfm-transition);
    position: relative;
}

.hfm-navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hfm-navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
    border-bottom: none;
    padding-bottom: 0.45rem;
}

/* ── Кнопки ─────────────────────────────────────────────── */

.hfm-btn-primary {
    background: linear-gradient(135deg, var(--hfm-blue) 0%, var(--hfm-sky) 100%);
    color: #fff;
    border: none;
    border-radius: var(--hfm-radius-sm);
    padding: 0.55rem 1.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all var(--hfm-transition);
    box-shadow: 0 2px 12px rgba(0, 120, 212, 0.25);
    position: relative;
    overflow: hidden;
}

.hfm-btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hfm-btn-primary:hover {
    background: linear-gradient(135deg, var(--hfm-sky) 0%, var(--hfm-accent) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 120, 212, 0.35);
    transform: translateY(-1px);
}

.hfm-btn-primary:hover::before {
    left: 100%;
}

.hfm-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.2);
}

/* ── Прогресс-бар ──────────────────────────────────────── */

.hfm-progress {
    background: linear-gradient(90deg, var(--hfm-blue), var(--hfm-sky), var(--hfm-accent));
    background-size: 200% 100%;
    animation: progressShimmer 2s ease infinite;
    border-radius: 4px;
}

@keyframes progressShimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.progress {
    border-radius: 6px;
    background: rgba(0, 48, 135, 0.06);
    overflow: hidden;
}

/* ── Страница входа ────────────────────────────────────── */

.hfm-login-bg {
    background: linear-gradient(135deg, #0a1628 0%, var(--hfm-blue) 35%, var(--hfm-sky) 70%, var(--hfm-accent) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Анимированные фоновые элементы */
.hfm-login-bg::before,
.hfm-login-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: floatBlob 12s ease-in-out infinite;
}

.hfm-login-bg::before {
    width: 500px; height: 500px;
    background: var(--hfm-accent);
    top: -150px; right: -100px;
}

.hfm-login-bg::after {
    width: 400px; height: 400px;
    background: var(--hfm-blue);
    bottom: -120px; left: -80px;
    animation-delay: -6s;
    animation-direction: reverse;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -30px) scale(1.05); }
    66%      { transform: translate(-20px, 20px) scale(0.95); }
}

.hfm-login-card {
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    animation: cardAppear 0.6s ease-out;
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hfm-logo-block {
    display: inline-block;
}

.hfm-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 76px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--hfm-blue), var(--hfm-sky), var(--hfm-accent));
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 20px rgba(0, 120, 212, 0.35);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 120, 212, 0.35); }
    50%      { box-shadow: 0 4px 30px rgba(0, 120, 212, 0.5); }
}

/* ── Карточки (glassmorphism) ──────────────────────────── */

.card {
    border-radius: var(--hfm-radius);
    border: 1px solid rgba(0, 48, 135, 0.06);
    background: var(--hfm-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--hfm-shadow);
    transition: all var(--hfm-transition);
}

.card:hover {
    box-shadow: var(--hfm-shadow-lg);
}

.card-header {
    border-bottom: 1px solid rgba(0, 48, 135, 0.06);
    border-radius: var(--hfm-radius) var(--hfm-radius) 0 0 !important;
    background: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* Карточки-метрики дашборда */
.metric-card {
    background: var(--hfm-glass);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--hfm-radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--hfm-transition);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hfm-blue), var(--hfm-sky), var(--hfm-accent));
    border-radius: var(--hfm-radius) var(--hfm-radius) 0 0;
    opacity: 0;
    transition: opacity var(--hfm-transition);
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hfm-shadow-lg);
}

.metric-card:hover::before {
    opacity: 1;
}

/* ── Таблицы ────────────────────────────────────────────── */

.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hfm-gray);
    border-bottom: 2px solid rgba(0, 48, 135, 0.1);
    background: rgba(255, 255, 255, 0.5);
    padding: 0.75rem;
    font-weight: 700;
}

.table td {
    vertical-align: middle;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0, 48, 135, 0.04);
    transition: background var(--hfm-transition);
}

.table-hover tbody tr:hover td {
    background: rgba(0, 120, 212, 0.04);
}

/* ── Form controls ──────────────────────────────────────── */

.form-control,
.form-select {
    border-radius: var(--hfm-radius-sm);
    border: 1.5px solid rgba(0, 48, 135, 0.12);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.55rem 0.9rem;
    transition: all var(--hfm-transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hfm-sky);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.12);
    background: #fff;
}

/* ── Alerts ─────────────────────────────────────────────── */

.alert {
    border-radius: var(--hfm-radius-sm);
    border: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.alert-success {
    background: rgba(22, 163, 74, 0.1);
    border-left: 4px solid #16a34a;
    color: #15803d;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.08);
    border-left: 4px solid #dc2626;
    color: #b91c1c;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.alert-info {
    background: rgba(0, 120, 212, 0.06);
    border-left: 4px solid var(--hfm-sky);
    color: #1e40af;
}

/* ══════════════════════════════════════════════════════════
   ТЕСТЫ
   ══════════════════════════════════════════════════════════ */

.test-panel {
    min-height: 200px;
    animation: fadeSlideIn 0.4s ease-out;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Тест реакции выбора */
.test-reaction-area {
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid rgba(0, 48, 135, 0.08);
    border-radius: var(--hfm-radius);
    position: relative;
    overflow: hidden;
}

.reaction-stimulus {
    width: 80px;
    height: 80px;
    position: absolute;
    cursor: pointer;
    transition: transform 0.05s;
    animation: stimulusPop 0.15s ease-out;
}

@keyframes stimulusPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.reaction-stimulus:active {
    transform: scale(0.85);
}

.stimulus-green-circle {
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #4ade80, #16a34a);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.5), 0 0 6px rgba(34, 197, 94, 0.3) inset;
}

.stimulus-blue-circle {
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #60a5fa, #2563eb);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.5), 0 0 6px rgba(59, 130, 246, 0.3) inset;
}

.stimulus-green-square {
    border-radius: 10px;
    background: radial-gradient(circle at 35% 35%, #4ade80, #16a34a);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.5), 0 0 6px rgba(34, 197, 94, 0.3) inset;
}

/* Демо-стимулы */
.stimulus-demo {
    display: inline-block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stimulus-demo-green-circle {
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #4ade80, #16a34a);
}

.stimulus-demo-blue-circle {
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #60a5fa, #2563eb);
}

.stimulus-demo-green-square {
    border-radius: 4px;
    background: radial-gradient(circle at 35% 35%, #4ade80, #16a34a);
}

/* Таблица Шульте */
.schulte-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

.schulte-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: var(--hfm-glass);
    border: 2px solid rgba(0, 48, 135, 0.1);
    border-radius: var(--hfm-radius-sm);
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    color: var(--hfm-dark);
    backdrop-filter: blur(4px);
}

.schulte-cell:hover {
    border-color: var(--hfm-sky);
    background: rgba(0, 120, 212, 0.08);
    transform: scale(1.04);
    box-shadow: 0 2px 12px rgba(0, 120, 212, 0.15);
}

.schulte-cell.schulte-found {
    background: linear-gradient(135deg, var(--hfm-blue), var(--hfm-sky));
    color: #fff;
    border-color: transparent;
    cursor: default;
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 48, 135, 0.2);
}

.schulte-cell.schulte-error {
    background: rgba(220, 38, 38, 0.12);
    border-color: #dc2626;
    animation: shakeCell 0.3s ease;
}

@keyframes shakeCell {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

/* Корректурная проба */
.correction-grid {
    font-family: 'Courier New', monospace;
    line-height: 2;
    user-select: none;
}

.correction-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
}

.correction-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 32px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.1s ease;
    color: var(--hfm-dark);
}

.correction-letter:hover {
    background: rgba(0, 120, 212, 0.08);
    transform: scale(1.08);
}

.correction-letter.correction-hit {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(22, 163, 74, 0.2);
}

.correction-letter.correction-miss {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #991b1b;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.15);
}

.correction-letter.correction-missed-target {
    background: linear-gradient(135deg, #fefce8, #fef08a);
    color: #854d0e;
    text-decoration: underline;
}

/* Память */
.memory-display {
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Опросник САН — слайдеры */
.san-slider {
    height: 8px;
    cursor: pointer;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.15), rgba(0, 48, 135, 0.06), rgba(22, 163, 74, 0.15));
}

.san-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hfm-blue), var(--hfm-sky));
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 48, 135, 0.25);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.san-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 16px rgba(0, 120, 212, 0.4);
    transform: scale(1.1);
}

.san-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hfm-blue), var(--hfm-sky));
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 48, 135, 0.25);
    cursor: pointer;
}

.san-slider-value {
    display: inline-block;
    min-width: 2.2em;
    text-align: center;
    background: linear-gradient(135deg, var(--hfm-blue), var(--hfm-sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.san-slider-question {
    border: 1px solid rgba(0, 48, 135, 0.06);
    background: var(--hfm-glass);
    transition: all var(--hfm-transition);
}

.san-slider-question:hover {
    box-shadow: 0 2px 12px rgba(0, 48, 135, 0.06);
}

/* ── Масштаб корректурной пробы ────────────────────────── */

.correction-scale-normal .correction-letter {
    width: 28px;
    height: 32px;
    font-size: 1rem;
}

.correction-scale-large .correction-letter {
    width: 38px;
    height: 42px;
    font-size: 1.4rem;
}

.correction-scale-xlarge .correction-letter {
    width: 48px;
    height: 54px;
    font-size: 1.8rem;
}

/* Демо-пример */
.correction-letter-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 34px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    background: var(--hfm-glass);
    border: 1px solid rgba(0, 48, 135, 0.1);
    transition: all 0.2s ease;
}

.correction-example-target {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    font-weight: 700;
    border-color: #16a34a;
}

/* Масштабы для примера */
.correction-scale-normal .correction-letter-demo {
    width: 28px;
    height: 32px;
    font-size: 1rem;
}

.correction-scale-large .correction-letter-demo {
    width: 38px;
    height: 42px;
    font-size: 1.4rem;
}

.correction-scale-xlarge .correction-letter-demo {
    width: 48px;
    height: 54px;
    font-size: 1.8rem;
}


/* ── Бейджи и статусы ────────────────────────────────────  */

.badge {
    font-weight: 600;
    padding: 0.4em 0.75em;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.badge.bg-success { background: linear-gradient(135deg, #16a34a, #22c55e) !important; }
.badge.bg-warning { background: linear-gradient(135deg, #d97706, #f59e0b) !important; color: #fff !important; }
.badge.bg-danger  { background: linear-gradient(135deg, #dc2626, #ef4444) !important; }

/* ── Уведомления ───────────────────────────────────────── */

.list-group-item {
    border-radius: var(--hfm-radius-sm) !important;
    margin-bottom: 6px;
    border: 1px solid rgba(0, 48, 135, 0.06);
    transition: all var(--hfm-transition);
}

.list-group-item:hover {
    box-shadow: 0 2px 8px rgba(0, 48, 135, 0.06);
}

.list-group-item-info {
    border-left: 4px solid var(--hfm-sky);
    background: rgba(0, 120, 212, 0.04);
}

/* ── Пагинация ─────────────────────────────────────────── */

.page-link {
    border-radius: 8px !important;
    border: none;
    margin: 0 2px;
    color: var(--hfm-blue);
    font-weight: 500;
    transition: all var(--hfm-transition);
}

.page-link:hover {
    background: rgba(0, 120, 212, 0.08);
    color: var(--hfm-sky);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--hfm-blue), var(--hfm-sky));
    border: none;
    box-shadow: 0 2px 8px rgba(0, 48, 135, 0.2);
}

/* ── Футер ─────────────────────────────────────────────── */

footer {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--hfm-gray);
}

/* ── Скроллбар (WebKit) ────────────────────────────────── */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(0, 48, 135, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 48, 135, 0.25); }

/* ── Адаптивность ──────────────────────────────────────── */

@media (max-width: 768px) {
    .metric-card {
        margin-bottom: 1rem;
    }

    .metric-card:hover {
        transform: none;
    }

    .hfm-navbar .navbar-brand {
        font-size: 0.95rem;
    }

    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .schulte-cell {
        font-size: 1rem;
        border-radius: 8px;
    }

    .correction-letter {
        width: 22px;
        height: 26px;
        font-size: 0.8rem;
    }

    .reaction-stimulus {
        width: 70px;
        height: 70px;
    }

    .san-slider::-webkit-slider-thumb {
        width: 34px;
        height: 34px;
    }

    .san-slider::-moz-range-thumb {
        width: 34px;
        height: 34px;
    }

    .hfm-login-card {
        margin: 1rem;
        border-radius: var(--hfm-radius);
    }

    body::before {
        display: none;
    }
}

@media (max-width: 400px) {
    .correction-row {
        gap: 1px;
    }

    .correction-letter {
        width: 18px;
        height: 22px;
        font-size: 0.7rem;
    }
}

/* ── Утилиты ───────────────────────────────────────────── */

.hfm-gradient-text {
    background: linear-gradient(135deg, var(--hfm-blue), var(--hfm-sky), var(--hfm-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hfm-glass-panel {
    background: var(--hfm-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hfm-glass-border);
    border-radius: var(--hfm-radius);
    box-shadow: var(--hfm-shadow);
}

/* ── Selection color ───────────────────────────────────── */

::selection {
    background: rgba(0, 120, 212, 0.2);
    color: var(--hfm-dark);
}

/* ── Статусные круги для уведомлений ───────────────────── */

.status-circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.3), 0 0 6px rgba(34, 197, 94, 0.2);
}

.status-yellow {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3), 0 0 6px rgba(245, 158, 11, 0.2);
}

.status-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3), 0 0 6px rgba(239, 68, 68, 0.2);
}

.status-default {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    box-shadow: 0 1px 3px rgba(156, 163, 175, 0.3);
}

/* ── Доступность: уменьшение движения ──────────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body::before {
        animation: none;
    }
}
