/* ===== МАТЕРИАЛЬНЫЙ ДИЗАЙН 3 ТИПОГРАФИЧЕСКАЯ СИСТЕМА ===== */

/* Стандартные брейкпоинты Material Design */
:root {
    /* Брейкпоинты */
    --bp-xs: 0;
    --bp-sm: 576px;
    --bp-md: 768px;
    --bp-lg: 992px;
    --bp-xl: 1200px;
    --bp-xxl: 1400px;
    
    /* ===== MATERIAL DESIGN 3 TYPE SCALE ===== */
    
    /* DISPLAY STYLES - самые большие заголовки */
    --font-size-display-large: clamp(3.5rem, 8vw, 4.5rem);    /* 56px - 72px */
    --font-size-display-medium: clamp(2.8rem, 7vw, 3.5rem);   /* 45px - 56px */
    --font-size-display-small: clamp(2.25rem, 6vw, 2.8rem);   /* 36px - 45px */
    
    /* HEADLINE STYLES - основные заголовки */
    --font-size-headline-large: clamp(2rem, 5.5vw, 2.5rem);   /* 32px - 40px */
    --font-size-headline-medium: clamp(1.75rem, 5vw, 2.25rem); /* 28px - 36px */
    --font-size-headline-small: clamp(1.5rem, 4.5vw, 1.75rem); /* 24px - 28px */
    
    /* TITLE STYLES - заголовки разделов */
    --font-size-title-large: clamp(1.375rem, 4vw, 1.5rem);    /* 22px - 24px */
    --font-size-title-medium: clamp(1rem, 3.5vw, 1.25rem);    /* 16px - 20px */
    --font-size-title-small: clamp(0.875rem, 3vw, 1rem);      /* 14px - 16px */
    
    /* BODY STYLES - основной текст */
    --font-size-body-large: clamp(1rem, 3.5vw, 1.125rem);     /* 16px - 18px */
    --font-size-body-medium: clamp(0.875rem, 3vw, 1rem);      /* 14px - 16px */
    --font-size-body-small: clamp(0.75rem, 2.5vw, 0.875rem);  /* 12px - 14px */
    
    /* LABEL STYLES - метки и кнопки */
    --font-size-label-large: clamp(0.875rem, 3vw, 1rem);      /* 14px - 16px */
    --font-size-label-medium: clamp(0.75rem, 2.5vw, 0.875rem); /* 12px - 14px */
    --font-size-label-small: clamp(0.6875rem, 2vw, 0.75rem);  /* 11px - 12px */
    
    /* Совместимость со старой системой */
    --font-size-xs: var(--font-size-label-small);
    --font-size-sm: var(--font-size-label-medium);
    --font-size-base: var(--font-size-body-large);
    --font-size-lg: var(--font-size-title-medium);
    --font-size-xl: var(--font-size-title-large);
    
    /* Адаптивные заголовки (совместимость) */
    --font-size-h6: var(--font-size-title-small);
    --font-size-h5: var(--font-size-title-medium);
    --font-size-h4: var(--font-size-title-large);
    --font-size-h3: var(--font-size-headline-small);
    --font-size-h2: var(--font-size-headline-medium);
    --font-size-h1: var(--font-size-headline-large);
    
    /* ===== MATERIAL DESIGN 3 SPACING SYSTEM ===== */
    
    /* Базовые отступы (8dp grid system) */
    --spacing-4: clamp(0.25rem, 0.8vw, 0.375rem);        /* 4px - 6px */
    --spacing-8: clamp(0.5rem, 1.2vw, 0.75rem);          /* 8px - 12px */
    --spacing-12: clamp(0.75rem, 1.8vw, 1rem);           /* 12px - 16px */
    --spacing-16: clamp(1rem, 2.5vw, 1.5rem);            /* 16px - 24px */
    --spacing-20: clamp(1.25rem, 3vw, 1.875rem);         /* 20px - 30px */
    --spacing-24: clamp(1.5rem, 3.5vw, 2.25rem);         /* 24px - 36px */
    --spacing-32: clamp(2rem, 4.5vw, 3rem);              /* 32px - 48px */
    --spacing-40: clamp(2.5rem, 5.5vw, 3.75rem);         /* 40px - 60px */
    --spacing-48: clamp(3rem, 6.5vw, 4.5rem);            /* 48px - 72px */
    --spacing-64: clamp(4rem, 8vw, 6rem);                /* 64px - 96px */
    
    /* Совместимость со старой системой */
    --spacing-xs: var(--spacing-4);
    --spacing-sm: var(--spacing-8);
    --spacing-md: var(--spacing-16);
    --spacing-lg: var(--spacing-24);
    --spacing-xl: var(--spacing-32);
    --spacing-xxl: var(--spacing-48);
    
    /* ===== MATERIAL DESIGN 3 ELEVATION & SURFACES ===== */
    
    /* Радиусы скругления */
    --border-radius-none: 0;
    --border-radius-xs: 4px;
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 28px;
    --border-radius-full: 50rem;
    
    /* Тени (Material Design 3 elevation) */
    --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --elevation-2: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
    --elevation-3: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.10);
    --elevation-4: 0 15px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05);
    --elevation-5: 0 20px 40px rgba(0, 0, 0, 0.20);
    
    /* Совместимость */
    --box-shadow-sm: var(--elevation-1);
    --box-shadow: var(--elevation-2);
    --box-shadow-lg: var(--elevation-3);
    
    /* ===== MATERIAL DESIGN 3 MOTION ===== */
    
    /* Переходы */
    --duration-short1: 50ms;   /* Микро-интеракции */
    --duration-short2: 100ms;  /* Маленькие изменения */
    --duration-short3: 150ms;  /* Быстрые переходы */
    --duration-short4: 200ms;  /* Стандартные переходы */
    --duration-medium1: 250ms; /* Средние переходы */
    --duration-medium2: 300ms; /* Комплексные переходы */
    --duration-medium3: 350ms; /* Большие изменения */
    --duration-medium4: 400ms; /* Тяжелые элементы */
    --duration-long1: 450ms;   /* Длинные переходы */
    --duration-long2: 500ms;   /* Очень длинные переходы */
    
    /* Easing curves Material Design 3 */
    --easing-standard: cubic-bezier(0.2, 0.0, 0, 1.0);
    --easing-decelerate: cubic-bezier(0.0, 0.0, 0.2, 1);
    --easing-accelerate: cubic-bezier(0.4, 0.0, 1, 1);
    --easing-emphasized: cubic-bezier(0.2, 0.0, 0, 1.0);
    
    /* Совместимость */
    --transition: all var(--duration-short4) var(--easing-standard);
    --transition-fast: all var(--duration-short2) var(--easing-standard);
    --transition-slow: all var(--duration-medium2) var(--easing-standard);
    
    /* Адаптивные контейнеры */
    --container-padding: clamp(1rem, 4vw, 2rem);
    --card-padding: clamp(1rem, 3vw, 2rem);
    --section-margin: clamp(2rem, 5vw, 4rem);
}

/* ===== МАТЕРИАЛЬНЫЙ ДИЗАЙН 3 ТИПОГРАФИКА ===== */

/* Базовая типографика */
html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body-large);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== DISPLAY STYLES ===== */
.display-large, .display-1 { 
    font-size: var(--font-size-display-large); 
    line-height: 1.12; 
    font-weight: 400;
    letter-spacing: -0.25px;
    margin-bottom: var(--spacing-32);
}

.display-medium, .display-2 { 
    font-size: var(--font-size-display-medium); 
    line-height: 1.16; 
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: var(--spacing-24);
}

.display-small, .display-3 { 
    font-size: var(--font-size-display-small); 
    line-height: 1.22; 
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: var(--spacing-24);
}

/* ===== HEADLINE STYLES ===== */
h1, .h1, .headline-large { 
    font-size: var(--font-size-headline-large); 
    line-height: 1.25; 
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: var(--spacing-24);
}

h2, .h2, .headline-medium { 
    font-size: var(--font-size-headline-medium); 
    line-height: 1.29; 
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: var(--spacing-20);
}

h3, .h3, .headline-small { 
    font-size: var(--font-size-headline-small); 
    line-height: 1.33; 
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: var(--spacing-16);
}

/* ===== TITLE STYLES ===== */
h4, .h4, .title-large { 
    font-size: var(--font-size-title-large); 
    line-height: 1.45; 
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: var(--spacing-16);
}

h5, .h5, .title-medium { 
    font-size: var(--font-size-title-medium); 
    line-height: 1.5; 
    font-weight: 500;
    letter-spacing: 0.1px;
    margin-bottom: var(--spacing-12);
}

h6, .h6, .title-small { 
    font-size: var(--font-size-title-small); 
    line-height: 1.57; 
    font-weight: 500;
    letter-spacing: 0.1px;
    margin-bottom: var(--spacing-12);
}

/* ===== BODY STYLES ===== */
p, .text-base, .body-large {
    font-size: var(--font-size-body-large);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-16);
}

.body-medium {
    font-size: var(--font-size-body-medium);
    line-height: 1.43;
    font-weight: 400;
    letter-spacing: 0.25px;
    margin-bottom: var(--spacing-12);
}

.body-small {
    font-size: var(--font-size-body-small);
    line-height: 1.33;
    font-weight: 400;
    letter-spacing: 0.4px;
    margin-bottom: var(--spacing-8);
}

/* ===== LABEL STYLES ===== */
.label-large {
    font-size: var(--font-size-label-large);
    line-height: 1.43;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.label-medium {
    font-size: var(--font-size-label-medium);
    line-height: 1.33;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.label-small {
    font-size: var(--font-size-label-small);
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.text-lg {
    font-size: var(--font-size-lg);
    line-height: 1.6;
}

.text-xl {
    font-size: var(--font-size-xl);
    line-height: 1.5;
}

.text-sm {
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.text-xs {
    font-size: var(--font-size-xs);
    line-height: 1.4;
}

/* Адаптивные кнопки */
.btn {
    font-size: var(--font-size-base);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-sm {
    font-size: var(--font-size-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
}

.btn-lg {
    font-size: var(--font-size-lg);
    padding: var(--spacing-md) var(--spacing-lg);
}

/* Адаптивные карточки */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: var(--spacing-lg);
}

.card-body {
    padding: var(--card-padding);
}

/* Адаптивные контейнеры */
.container, .container-fluid {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ===== TABLES (MD3) — предотвращение горизонтального скролла на больших экранах ===== */
/* Фиксированная раскладка и безопасные переносы, чтобы таблицы вписывались по ширине */
.table {
    table-layout: fixed; /* безопасно для мобильных/планшетов */
    width: 100%;
}

.table th,
.table td {
    white-space: normal;
    /* На десктопах используем менее агрессивные переносы */
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    text-wrap: pretty;
}

/* На >=992px убираем лишний горизонтальный скролл-обертку, если он не требуется */
@media (min-width: 992px) {
    .table-responsive {
        overflow-x: visible;
    }
}

/* На очень широких экранах раскладка таблицы "auto" для природных ширин колонок */
@media (min-width: 1200px) {
    .table {
        table-layout: auto;
    }
}

/* Адаптивные отступы секций */
.py-5 {
    padding-top: var(--section-margin) !important;
    padding-bottom: var(--section-margin) !important;
}

/* ===== БРЕЙКПОИНТ-СПЕЦИФИЧНЫЕ ПРАВИЛА ===== */

/* ===== Карточка опроса: действия ===== */
.card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-8);
    align-items: stretch;
}

/* Элементы внутри сетки не должны навязывать min-content ширину */
.card-actions > * { min-width: 0; }

/* Форма удаления в сетке должна занимать всю ячейку */
.card-actions form { display: block; width: 100%; }

/* Разрешаем перенос текста в кнопках, чтобы не «вылазили» */
.card-actions .btn {
    white-space: normal;
    word-break: normal;          /* избегаем странных переносов внутри слов */
    overflow-wrap: anywhere;     /* переносим при необходимости по границам */
    hyphens: auto;               /* мягкие переносы для длинных слов */
    text-wrap: balance;          /* более приятная разбивка строк */
}

/* Модификатор: вертикальный список на всех экранах */
.card-actions.stacked { grid-template-columns: 1fr; }

/* На маленьких экранах — одна колонка для удобного тапа */
@media (max-width: 575px) {
    .card-actions {
        grid-template-columns: 1fr;
    }
}

/* На ≥768px — три колонки, кнопки занимают ровно свою ячейку */
@media (min-width: 768px) {
    .card-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* На ≥1200px — четыре колонки, компактная сетка */
@media (min-width: 1200px) {
    .card-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Уточняем отступы в футере карточки */
.card .card-footer {
    padding: var(--spacing-12) var(--spacing-16);
    overflow: hidden; /* предохраняем от вылезания внутренних элементов */
}

/* Обертки input-group внутри карточки должны уметь ужиматься */
.card .input-group { min-width: 0; }
.card .input-group .form-control { min-width: 0; }

/* Маленькие мобильные (до 576px) */
@media (max-width: 575px) {
    :root {
        --container-padding: 1rem;
        --card-padding: 1rem;
        --section-margin: 1.5rem;
    }
    
    .container, .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .col-lg-6, .col-lg-8, .col-md-8 {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Мобильные (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    :root {
        --container-padding: 1.25rem;
        --card-padding: 1.25rem;
        --section-margin: 2rem;
    }
}

/* Планшеты (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    :root {
        --container-padding: 1.5rem;
        --card-padding: 1.5rem;
        --section-margin: 2.5rem;
    }
}

/* Маленькие десктопы (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    :root {
        --container-padding: 1.75rem;
        --card-padding: 1.75rem;
        --section-margin: 3rem;
    }
}

/* Большие десктопы (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    :root {
        --container-padding: 2rem;
        --card-padding: 2rem;
        --section-margin: 3.5rem;
    }
}

/* Очень большие экраны (1400px+) */
@media (min-width: 1400px) {
    :root {
        --container-padding: 2.5rem;
        --card-padding: 2.5rem;
        --section-margin: 4rem;
    }
    
    .container {
        max-width: 1320px;
    }
}

/* TeamMesh Custom Styles */

/* Root Variables */
:root {
    --primary-color: #28a745;
    --secondary-color: #6c757d;
    --success-color: #20c997;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    /* Custom group colors */
    --group-a-color: #8B4513; /* Коричневый для группы A */
    --group-b-color: #dc3545; /* Красный для группы B */
    --group-c-color: #ffc107; /* Желтый для группы C */
    --group-g-color: #17a2b8; /* Голубой для группы G */
    --group-d-color: #28a745; /* Зеленый для группы D */
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    
    --transition: all 0.3s ease-in-out;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

/* Body and Typography */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* Navigation Enhancements */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0.5rem 0;
}

.navbar-brand img {
    max-width: 160px;
    height: auto;
    max-height: 44px;
    display: block;
}

@media (max-width: 1200px) {
    .navbar-brand img {
        max-width: 140px;
        max-height: 40px;
    }
}

@media (max-width: 992px) {
    .navbar-brand img {
        max-width: 120px;
        max-height: 36px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-width: 100px;
        max-height: 32px;
    }
}

.navbar-nav .nav-link {
    white-space: nowrap;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 6px;
    margin: 0 0.25rem;
}

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

/* Активный пункт меню — тонкая полоска снизу (accent) */
.navbar-nav .nav-link.active {
    color: var(--tc-accent);
    position: relative;
}
.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.05rem;
    height: 2px;
    border-radius: 2px;
    background: var(--tc-accent);
}

@media (max-width: 1200px) {
    .navbar .navbar-nav .nav-link {
        margin: 0 0.1rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Button Enhancements */
.btn {
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
}

.btn:active {
    transform: translateY(0);
}

/* Доступность: ссылка «пропустить к содержимому» — clip-скрытие (RTL-safe, без overflow) */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    text-decoration: none;
}

/* Доступность: видимый фокус для клавиатурной навигации (a11y) */
.btn:focus-visible,a:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.20);
}

/* Уважать системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
    .btn, .btn:hover, .btn:active { transform: none; }
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Form Enhancements */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: var(--border-radius);
    border-left: 4px solid;
    font-weight: 500;
}

.alert-primary {
    border-left-color: var(--primary-color);
}

.alert-success {
    border-left-color: var(--success-color);
}

.alert-danger {
    border-left-color: var(--danger-color);
}

.alert-warning {
    border-left-color: var(--warning-color);
}

.alert-info {
    border-left-color: var(--info-color);
}

/* Badge Enhancements */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Тёмный текст на светлых badge (жёлтый/светлый/инфо) — контраст (было белое на жёлтом ~1.6) */
.badge.bg-warning, .badge.bg-light, .badge.bg-info {
    color: #212529 !important;
}

/* Брендинг: общий градиент/стиль (размеры задаются per-page) — единый источник вместо дублей в 3 шаблонах */
.brand-title {
    background: linear-gradient(135deg, #7C5CF6 0%, #38BDF8 50%, #22C55E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.brand-slogan {
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* i18n navbar: длинные метки (fr/pt) переполняли строку на 992-1400px — сжать и разрешить перенос вместо overflow */
@media (min-width: 992px) and (max-width: 1400px) {
    .navbar-nav {
        flex-wrap: wrap;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.92rem;
    }
}

/* Table Enhancements */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Admin tables: stack actions and prevent overflow */
.table td.actions-cell .table-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem; /* fallback if vars differ */
}
.table td.actions-cell .table-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}
.table td.subscription-cell .plan-select {
    min-width: 160px;
}
.table .no-wrap { white-space: nowrap; }

/* Stabilize table row alignment */
.table td, .table th { vertical-align: middle; }

/* Prevent hover lift/shadows for buttons inside tables */
.table .btn { box-shadow: none; }
.table .btn:hover { transform: none; box-shadow: none; }

/* Subscription cell: allow wrapping cleanly */
.table td.subscription-cell > .d-flex { flex-wrap: wrap; gap: 0.5rem !important; }
.table td.subscription-cell .badge { white-space: nowrap; }
.table td.subscription-cell form { flex-wrap: nowrap; }
.table td.subscription-cell .plan-select { min-width: 180px; }

/* Set a reasonable width for actions column to avoid layout jumps */
.table td.actions-cell { width: 180px; }
@media (min-width: 1400px) { .table td.actions-cell { width: 200px; } }

/* On medium/large but narrower desktops, stack subscription controls to a column */
@media (max-width: 1200px) {
    .table td.subscription-cell > .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .table td.subscription-cell form {
        width: 100%;
        gap: 0.5rem;
    }
    .table td.subscription-cell .plan-select { width: 100%; }
    .table td.subscription-cell .btn { width: max-content; }
}

/* Stronger nowrap for small action buttons */
.table .no-wrap { white-space: nowrap !important; }

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 2px solid #f8f9fa;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Hero Section Button Styles */
.hero-section .btn-primary {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    background: linear-gradient(45deg, #e55a2b, #e8851a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.hero-section .btn-outline-primary {
    border: 2px solid #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 600;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
}

.hero-section .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Hover effect for clickable cards */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Feature Cards */
.feature-card {
    transition: var(--transition);
    height: 100%;
    border-radius: 12px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon i {
    transition: var(--transition);
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

/* Survey Taking Interface */
.survey-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.survey-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.question-slide {
    min-height: 400px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.option-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f0ff 100%);
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.option-card.selected::before {
    transform: scaleX(1);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px 8px 0;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.step.active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step.completed {
    background: var(--success-color);
    color: white;
}

.step::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background: #e9ecef;
}

.step:last-child::after {
    display: none;
}

.step.completed::after {
    background: var(--success-color);
}

/* Results Display */
.results-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.score-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: white;
    transition: var(--transition);
}

.score-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.group-A .score-card::before { background: var(--group-a-color); }
.group-B .score-card::before { background: var(--group-b-color); }
.group-C .score-card::before { background: var(--warning-color); }
.group-D .score-card::before { background: var(--group-d-color); }

.score-display {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.group-A .score-display { color: var(--group-a-color); }
.group-B .score-display { color: var(--group-b-color); }
.group-C .score-display { color: #e67e22; }
.group-D .score-display { color: var(--group-d-color); }

/* Badge стили для групп */
.badge.group-A {
    background-color: var(--group-a-color) !important;
    color: white !important;
}

.badge.group-B {
    background-color: var(--group-b-color) !important;
    color: white !important;
}

.badge.group-C {
    background-color: var(--group-c-color) !important;
    color: #000 !important;
}

.badge.group-D {
    background-color: var(--group-d-color) !important;
    color: white !important;
}

/* Interpretation Cards */
.interpretation-card {
    background: #f8f9fa;
    border-left: 5px solid;
    border-radius: 0 10px 10px 0;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: var(--transition);
}

.interpretation-card:hover {
    transform: translateX(5px);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.1);
}

.interpretation-A { border-left-color: var(--danger-color); }
.interpretation-B { border-left-color: var(--success-color); }
.interpretation-C { border-left-color: var(--warning-color); }
.interpretation-D { border-left-color: var(--info-color); }

/* Admin Panel */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .step-indicator {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 0.5rem;
    }
    
    .step::after {
        display: none;
    }
    
    .score-display {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-nav {
        text-align: center;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin: 0.25rem 0;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

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

/* Focus Styles */
.btn:focus, .form-control:focus, .form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar, .btn, .alert-dismissible .btn-close, footer {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
    
    .text-white {
        color: #333 !important;
    }
    
    .bg-primary, .bg-success, .bg-danger, .bg-warning, .bg-info {
        background: white !important;
        color: #333 !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--info-color)) 1;
}

/* Dark Mode Support — ОТКЛЮЧЕНО: тему ведёт themes.css (data-theme + переключатель).
   Старый системный dark (#1a1a1a/#2d3748) конфликтовал с графитом → грязь/сине-серый. Условие min-width:999999px = блок никогда не срабатывает. */
@media (prefers-color-scheme: dark) and (min-width: 999999px) {
    :root {
        --light-color: #343a40;
        --dark-color: #f8f9fa;
    }
    
    body {
        background-color: #1a1a1a;
        color: #f8f9fa;
    }
    
    .card {
        background-color: #2d3748;
        color: #f8f9fa;
    }
    
    .form-control, .form-select {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #f8f9fa;
    }
    
    .table {
        color: #f8f9fa;
        --bs-table-bg: #2d3748;
        --bs-table-color: #f8f9fa;
        --bs-table-striped-bg: #333e52;
        --bs-table-striped-color: #f8f9fa;
        --bs-table-hover-bg: #3a4658;
        --bs-table-hover-color: #f8f9fa;
        border-color: #4a5568;
    }

    .table th, .table td {
        color: #f8f9fa !important;
        background-color: #2d3748;
        border-color: #4a5568;
    }

    /* Читаемость muted-текста и светлых блоков в тёмной теме (контраст был ~1.1 → WCAG fail) */
    .text-muted {
        color: rgba(248, 249, 250, 0.65) !important;
    }
    .bg-light {
        background-color: #2d3748 !important;
    }
    .card-body {
        color: #f8f9fa;
    }
    footer.bg-light {
        color: #f8f9fa;
    }
    /* card-header был светлый с белым текстом (контраст 1.0 — невидим); form-label тёмный на тёмном */
    .card-header {
        background-color: #2d3748;
        color: #f8f9fa;
        border-color: #4a5568;
    }
    .form-label {
        color: #f8f9fa;
    }
    /* survey_results и подобные: белые inline-контейнеры читаемы в тёмной теме */
    .ai-followup-block, .dropdown-menu, .dropdown-item {
        background-color: #2d3748 !important;
        color: #f8f9fa;
    }
    /* легенда групп в детальном отчёте была тёмной на тёмном (1.59) */
    .flag-legend-item, .flag-legend-item span {
        color: #f8f9fa !important;
    }
    /* referral_page: шаги имели светлый inline-фон (#fff/#f2fbf5) → текст невидим в тёмной теме */
    .referral-step {
        background-color: #2d3748 !important;
        color: #f8f9fa;
    }
    .referral-step.completed {
        background-color: #1e3a2a !important;
    }
    .referral-step h5, .referral-step p, .referral-step strong, .referral-step span {
        color: #f8f9fa !important;
    }
    /* setup_interpretations: карточки интерпретаций имели светлый inline-фон (#f8f9fa) */
    .interpretation-item {
        background-color: #2d3748 !important;
        color: #f8f9fa;
        border-color: #4a5568 !important;
    }
    .group-section {
        border-color: #4a5568 !important;
    }
    /* светлые info/help-контейнеры (голубой #e8f4f8) — читаемость в тёмной теме */
    .help-text, .info-box, .hint-box {
        background-color: #2d3748 !important;
        color: #f8f9fa !important;
    }
    /* модальные окна (Import Definition и др.) — тёмная поверхность в тёмной теме */
    .modal-content {
        background-color: #2d3748;
        color: #f8f9fa;
    }
    .modal-header, .modal-footer {
        border-color: #4a5568;
    }
}

/* ===== ЛОКАЛИЗАЦИЯ: КИТАЙСКИЙ УПРОЩЕННЫЙ ===== */

/* Применяется когда lang="zh_cn" или текущий язык — китайский */
html[lang="zh_cn"],
html[lang="zh-cn"],
.lang-zh-cn {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8; /* Больше межстрочный интервал для читаемости иероглифов */
    word-break: keep-all; /* Не разрывать слова посередине */
    overflow-wrap: break-word; /* Переносить длинные строки */
}

html[lang="zh_cn"] body,
html[lang="zh-cn"] body,
.lang-zh-cn body {
    font-weight: 400; /* Обычная толщина для упрощенного китайского */
}

/* Заголовки на китайском — немного больший вес */
html[lang="zh_cn"] h1, html[lang="zh_cn"] h2, html[lang="zh_cn"] h3,
html[lang="zh-cn"] h1, html[lang="zh-cn"] h2, html[lang="zh-cn"] h3,
.lang-zh-cn h1, .lang-zh-cn h2, .lang-zh-cn h3 {
    font-weight: 700;
    letter-spacing: 0.02em; /* Небольшой интервал между иероглифами */
}

/* Кнопки и интерактивные элементы */
html[lang="zh_cn"] .btn,
html[lang="zh-cn"] .btn,
.lang-zh-cn .btn {
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Таблицы — больше padding для китайских иероглифов */
html[lang="zh_cn"] .table td, html[lang="zh_cn"] .table th,
html[lang="zh-cn"] .table td, html[lang="zh-cn"] .table th,
.lang-zh-cn .table td, .lang-zh-cn .table th {
    padding: 0.85rem 1rem;
}

/* Формы — увеличенная высота input для читаемости */
html[lang="zh_cn"] .form-control, html[lang="zh_cn"] .form-select,
html[lang="zh-cn"] .form-control, html[lang="zh-cn"] .form-select,
.lang-zh-cn .form-control, .lang-zh-cn .form-select {
    line-height: 1.8;
    padding: 0.65rem 0.85rem;
}

/* Dropdown меню — больше высота элементов */
html[lang="zh_cn"] .dropdown-item,
html[lang="zh-cn"] .dropdown-item,
.lang-zh-cn .dropdown-item {
    padding: 0.6rem 1.2rem;
    line-height: 1.7;
}

/* Карточки и контейнеры — больше padding */
html[lang="zh_cn"] .card-body,
html[lang="zh-cn"] .card-body,
.lang-zh-cn .card-body {
    padding: 1.5rem;
}

/* Мобильная адаптация для китайского */
@media (max-width: 768px) {
    html[lang="zh_cn"], html[lang="zh-cn"], .lang-zh-cn {
        line-height: 1.75; /* Немного меньше на мобильных */
    }
    
    html[lang="zh_cn"] .btn, html[lang="zh-cn"] .btn, .lang-zh-cn .btn {
        padding: 0.65rem 1rem; /* Больше кнопки для пальцев */
        font-size: 1rem;
    }
}

/* ===== ЛОКАЛИЗАЦИЯ: СЕРБСКИЙ (ЛАТИНИЦА) ===== */

/* Применяется когда lang="sr_latn" — латиница с диакритикой č š ž ć đ */
html[lang="sr_latn"],
html[lang="sr-Latn"],
html[lang="sr"],
.lang-sr-latn {
    font-family: 'Noto Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

html[lang="sr_latn"] h1, html[lang="sr_latn"] h2, html[lang="sr_latn"] h3,
.lang-sr-latn h1, .lang-sr-latn h2, .lang-sr-latn h3 {
    font-weight: 600;
    letter-spacing: 0.01em;
}

html[lang="sr_latn"] .btn,
.lang-sr-latn .btn {
    font-weight: 500;
}

/* ===== PT_BR LOCALE ===== */
html[lang="pt_br"],
.lang-pt-br {
    font-family: 'Noto Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

html[lang="pt_br"] h1, html[lang="pt_br"] h2, html[lang="pt_br"] h3,
.lang-pt-br h1, .lang-pt-br h2, .lang-pt-br h3 {
    font-weight: 600;
    letter-spacing: 0.01em;
}

html[lang="pt_br"] .btn,
.lang-pt-br .btn {
    font-weight: 500;
}

/* ===== DE LOCALE ===== */
html[lang="de"],
.lang-de {
    font-family: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.55;
}

html[lang="de"] h1, html[lang="de"] h2, html[lang="de"] h3,
.lang-de h1, .lang-de h2, .lang-de h3 {
    font-weight: 600;
    letter-spacing: 0.005em;
}

html[lang="de"] .btn,
.lang-de .btn {
    font-weight: 500;
    /* Немецкие слова длиннее EN — разрешаем перенос */
    word-break: break-word;
}

/* ===== FRENCH LOCALE ===== */
.lang-fr {
    font-family: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.55;
}

html[lang="fr"] h1, html[lang="fr"] h2, html[lang="fr"] h3,
.lang-fr h1, .lang-fr h2, .lang-fr h3 {
    font-weight: 600;
    letter-spacing: 0.005em;
}

html[lang="fr"] .btn,
.lang-fr .btn {
    font-weight: 500;
    word-break: break-word;
}

/* ===== ARABIC RTL STYLES ===== */

.lang-ar {
    font-family: 'Noto Naskh Arabic', 'Cairo', 'Amiri', system-ui, sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.8;
}

html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
.lang-ar h1, .lang-ar h2, .lang-ar h3 {
    font-weight: 700;
    letter-spacing: 0;
}

[dir="rtl"] .navbar-nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

[dir="rtl"] .card-body {
    text-align: right;
}

[dir="rtl"] .table {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .ms-3 { margin-right: 1rem !important; margin-left: 0 !important; }
[dir="rtl"] .me-3 { margin-left: 1rem !important; margin-right: 0 !important; }

[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end   { text-align: left !important; }

[dir="rtl"] .float-start { float: right !important; }
[dir="rtl"] .float-end   { float: left !important; }



/* Overlay прелоадера */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

/* Показать прелоадер */
.preloader-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* Контейнер для логотипа */
.preloader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Логотип прелоадера */
.preloader-logo {
    width: clamp(50px, 8vw, 100px);
    height: clamp(50px, 8vw, 100px);
    animation: preloader-rotate 1.5s linear infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

/* Текст под спиннером */
.preloader-text {
    color: #fff;
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Анимация вращения по часовой стрелке */
@keyframes preloader-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Адаптивность для планшетов */
@media (min-width: 768px) and (max-width: 992px) {
    .preloader-logo {
        width: clamp(60px, 7vw, 80px);
        height: clamp(60px, 7vw, 80px);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767px) {
    .preloader-logo {
        width: clamp(50px, 12vw, 60px);
        height: clamp(50px, 12vw, 60px);
    }
    
    .preloader-overlay {
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .preloader-text {
        font-size: 0.85rem;
    }
}