/* Unified Vision UI Red Theme - единый стиль для всех страниц */

:root {
    /* Основные цвета Vision UI Red */
    --vision-primary: #0a0a0a;
    --vision-secondary: #1a1a1a;
    --vision-accent: #dc2626;
    --vision-accent-light: #ef4444;
    --vision-purple: #dc2626;
    --vision-purple-light: #ef4444;
    --vision-success: #dc2626;
    --vision-warning: #dc2626;
    --vision-error: #dc2626;
    
    /* Градиенты */
    --vision-gradient-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --vision-gradient-accent: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --vision-gradient-purple: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --vision-gradient-success: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --vision-gradient-warning: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --vision-gradient-error: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    
    /* Фоновые цвета */
    --vision-bg-primary: #0a0a0a;
    --vision-bg-secondary: #1a1a1a;
    --vision-bg-card: rgba(255, 255, 255, 0.05);
    --vision-bg-overlay: rgba(0, 0, 0, 0.9);
    
    /* Границы */
    --vision-border: rgba(220, 38, 38, 0.3);
    --vision-border-light: rgba(220, 38, 38, 0.2);
    
    /* Тени */
    --vision-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    --vision-shadow-hover: 0 8px 25px rgba(220, 38, 38, 0.4);
    
    /* Текст */
    --vision-text-primary: #ffffff;
    --vision-text-secondary: #a0aec0;
    --vision-text-muted: #718096;
    
    /* Статусы */
    --vision-status-success: #dc2626;
    --vision-status-warning: #dc2626;
    --vision-status-error: #dc2626;
    --vision-status-info: #dc2626;
}

/* Глобальные стили */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--vision-gradient-primary);
    color: var(--vision-text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* ЧИСТЫЕ СТИЛИ БЕЗ СТАРЫХ НАСТРОЕК */
.vision-sidebar .vision-brand,
.vision-topbar {
    height: 70px !important;
    box-sizing: border-box !important;
}

.vision-sidebar .vision-brand {
    position: relative;
    z-index: 1000;
}

.vision-topbar {
    position: fixed !important;
    top: 0 !important;
    left: 280px !important;
    right: 0 !important;
    z-index: 999 !important;
}

/* Боковое меню */
.vision-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    border-right: 1px solid rgba(220, 38, 38, 0.3);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.vision-brand {
    padding: 0;
    text-align: center;
    height: 70px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    position: relative;
    border-bottom: none !important;
}

.vision-brand h2 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.vision-nav {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-group {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-group-title {
    padding: 0 20px 10px 20px;
    color: #a0aec0;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 10px;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav-item:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #ffffff;
}

.nav-item.active {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    color: currentColor;
}

/* Верхняя панель */
.vision-topbar {
    height: 70px !important;
    background: linear-gradient(90deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box !important;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 200px;
}

.breadcrumb {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 300px;
    justify-content: flex-end;
}

.search-bar {
    position: relative;
}

.search-input {
    padding: 8px 16px 8px 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.9rem;
    width: 200px;
}

.search-input::placeholder {
    color: #a0aec0;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn svg {
    width: 20px !important;
    height: 20px !important;
    color: currentColor;
}

.topbar-actions .action-btn {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
}

.topbar-actions .action-btn svg {
    width: 20px !important;
    height: 20px !important;
}

/* Фиксированный размер для эмодзи в топбаре, если SVG не загрузился */
.topbar-actions .action-btn {
    font-size: 18px !important;
    line-height: 1 !important;
}

/* Убеждаемся, что кнопки одинакового размера */
.vision-topbar .action-btn {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
}

/* Принудительно устанавливаем размеры для всех action-btn на всех страницах */
.vision-topbar .topbar-actions .action-btn,
.vision-topbar .topbar-right .action-btn,
.topbar-actions .action-btn,
.topbar-right .action-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

/* Принудительно устанавливаем размеры для всех SVG в action-btn */
.vision-topbar .topbar-actions .action-btn svg,
.vision-topbar .topbar-right .action-btn svg,
.topbar-actions .action-btn svg,
.topbar-right .action-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    flex-shrink: 0 !important;
}

/* Переопределяем любые встроенные стили на страницах */
html body .vision-topbar .action-btn,
html body .topbar-actions .action-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

html body .vision-topbar .action-btn svg,
html body .topbar-actions .action-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    flex-shrink: 0 !important;
}

.action-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #ffffff;
}

/* Основной контент */
.vision-main-content {
    margin-left: 280px;
    margin-top: 70px;
    padding: 30px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: calc(100vh - 70px);
    position: relative;
    z-index: 1;
}

/* Контейнеры */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Карточки */
.card {
    background: var(--vision-bg-card);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--vision-border);
    padding: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vision-shadow);
}

/* Кнопки */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-primary {
    background: var(--vision-gradient-accent);
    color: var(--vision-text-primary);
    box-shadow: var(--vision-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--vision-shadow-hover);
}

.btn-secondary {
    background: var(--vision-bg-card);
    color: var(--vision-text-primary);
    border: 1px solid var(--vision-border);
}

.btn-secondary:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.btn-purple {
    background: var(--vision-gradient-purple);
    color: var(--vision-text-primary);
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--vision-text-primary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--vision-border);
    border-radius: 8px;
    background: var(--vision-bg-card);
    color: var(--vision-text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--vision-accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Таблицы */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--vision-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--vision-shadow);
}

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--vision-border);
}

.table th {
    background: var(--vision-bg-secondary);
    font-weight: 600;
    color: var(--vision-text-primary);
}

.table tr:hover {
    background: rgba(220, 38, 38, 0.05);
}

/* Статусные бейджи */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(220, 38, 38, 0.2);
    color: var(--vision-status-success);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.badge-warning {
    background: rgba(220, 38, 38, 0.2);
    color: var(--vision-status-warning);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.badge-error {
    background: rgba(220, 38, 38, 0.2);
    color: var(--vision-status-error);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.badge-info {
    background: rgba(220, 38, 38, 0.2);
    color: var(--vision-status-info);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Градиентный текст */
.gradient-text {
    background: var(--vision-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes border-slide {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

/* Классы анимаций */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .vision-sidebar {
        transform: translateX(-280px);
    }
    
    .vision-main-content {
        margin-left: 0;
    }
    
    .vision-topbar {
        left: 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .card {
        padding: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 12px;
        font-size: 14px;
    }
}

/* Специальные эффекты */
.glass-effect {
    background: var(--vision-bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--vision-border);
    box-shadow: var(--vision-shadow);
}

.neomorphic {
    background: var(--vision-bg-card);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.3),
        -8px -8px 16px rgba(220, 38, 38, 0.05);
}

.glow-effect {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}

/* Прогресс бары */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--vision-gradient-accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Круговые индикаторы */
.circle-progress {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-progress::before {
    content: attr(data-value);
    position: absolute;
    color: var(--vision-text-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Метрики */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--vision-bg-card);
    border-radius: 8px;
    border: 1px solid var(--vision-border);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.metric-content h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vision-text-primary);
}

.metric-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--vision-text-secondary);
}

/* Графики */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Уведомления */
.notification {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid;
}

.notification.success {
    background: rgba(220, 38, 38, 0.1);
    border-left-color: var(--vision-status-success);
    color: var(--vision-status-success);
}

.notification.warning {
    background: rgba(220, 38, 38, 0.1);
    border-left-color: var(--vision-status-warning);
    color: var(--vision-status-warning);
}

.notification.error {
    background: rgba(220, 38, 38, 0.1);
    border-left-color: var(--vision-status-error);
    color: var(--vision-status-error);
}

.notification.info {
    background: rgba(220, 38, 38, 0.1);
    border-left-color: var(--vision-status-info);
    color: var(--vision-status-info);
}

/* Кнопки обновления в сайдбаре */
.vision-upgrade-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vision-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* Карточка помощи в сайдбаре */
.vision-help-card {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.vision-help-card:hover {
    background: rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.vision-help-card h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vision-help-card p {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Стили для главной панели */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    border-color: rgba(220, 38, 38, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-change.positive { color: #dc2626; }
.stat-change.negative { color: #dc2626; }

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-label {
    color: #a0aec0;
    font-size: 0.9rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.welcome-card {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border-radius: 12px;
    padding: 30px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.welcome-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.4);
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.welcome-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.record-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.record-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.satisfaction-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.satisfaction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.satisfaction-title {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.satisfaction-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#dc2626 0deg 342deg, rgba(255, 255, 255, 0.1) 342deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    position: relative;
}

.satisfaction-circle::before {
    content: '95%';
    position: absolute;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
}

.satisfaction-label {
    color: #a0aec0;
    font-size: 0.8rem;
}

.referral-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.referral-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.referral-title {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.referral-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.referral-stat {
    text-align: center;
}

.referral-value {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
}

.referral-label {
    color: #a0aec0;
    font-size: 0.8rem;
}

.safety-gauge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#dc2626 0deg 334deg, rgba(255, 255, 255, 0.1) 334deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.safety-gauge::before {
    content: '9.3';
    position: absolute;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
}

.safety-label {
    text-align: center;
    color: #a0aec0;
    font-size: 0.7rem;
    margin-top: 5px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.chart-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.chart-container {
    height: 200px;
    position: relative;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}

.metric-item:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: translateX(4px);
}

.metric-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.metric-text {
    color: #a0aec0;
    font-size: 0.8rem;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.projects-card, .orders-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.projects-card:hover, .orders-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.projects-title, .orders-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-item, .order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-item:last-child, .order-item:last-child {
    border-bottom: none;
}

.project-item:hover, .order-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin: 0 -12px;
}

.project-avatar, .order-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
}

.project-info h4, .order-info h4 {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 0 0 4px 0;
}

.project-info p, .order-info p {
    color: #a0aec0;
    font-size: 0.8rem;
    margin: 0;
}

/* Адаптивность для выравнивания топбара и бокового меню */
@media (max-width: 1200px) {
    .vision-sidebar {
        width: 260px;
    }
    
    .vision-topbar {
        left: 260px !important;
    }
    
    .vision-main-content {
        margin-left: 260px;
    }
    
    .topbar-left {
        min-width: 180px;
    }
    
    .topbar-right {
        min-width: 250px;
    }
    
    .vision-sidebar .vision-brand,
    .vision-topbar {
        height: 70px !important;
    }
    
    .global-red-line {
        top: 70px !important;
    }
}

@media (max-width: 768px) {
    .vision-sidebar {
        width: 240px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .vision-sidebar.open {
        transform: translateX(0);
    }
    
    .vision-topbar {
        left: 0;
        padding: 0 20px;
    }
    
    .vision-main-content {
        margin-left: 0;
        margin-top: 70px;
        padding: 20px;
    }
    
    .topbar-left {
        min-width: auto;
        flex: 1;
    }
    
    .topbar-right {
        min-width: auto;
        gap: 10px;
    }
    
    .search-input {
        width: 150px;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .vision-sidebar .vision-brand,
    .vision-topbar {
        height: 70px !important;
    }
    
    .vision-topbar {
        left: 0 !important;
    }
    
    .global-red-line {
        top: 70px !important;
    }
}

/* ФИНАЛЬНОЕ РЕШЕНИЕ: ОДНА КРАСНАЯ ПОЛОСКА */
.global-red-line {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: rgba(220, 38, 38, 0.5) !important;
    z-index: 1001 !important;
    pointer-events: none !important;
}

/* Убираем ВСЕ старые полоски */
.vision-sidebar .vision-brand,
.vision-topbar {
    border-bottom: none !important;
}

.vision-sidebar .vision-brand::after,
.vision-topbar::after {
    display: none !important;
}
