@charset "UTF-8";
/* ========================================================= */
/* 0. УМНАЯ ПАЛИТРА (СВЕТЛАЯ И ТЕМНАЯ ТЕМА)                  */
/* ========================================================= */
:root {
    /* СВЕТЛАЯ ТЕМА (ДЕНЬ) */
    --bg-body: #f4f6f8;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-light: #f8fafc;
    --bg-widget-header: rgba(241, 243, 245, 0.9);
    --bg-input: #ffffff;
    
    --text-main: #334155; 
    --text-heading: #0f172a;
    --text-muted: #64748b;
    
    --border-color: rgba(226, 232, 240, 0.8);
    --border-dashed: #cbd5e1;
    
    --accent: #3742fa;
    --accent-hover: #2f3640;
    
    --bg-info: #eff6ff;
    --border-info: #bfdbfe;
    --text-info: #1e3a8a;
    --bg-success: #ecfdf5;
    --border-success: #a7f3d0;
    --text-success: #10b981;
    --bg-danger: #fff3f3;
    --border-danger: #fecaca;
    --text-danger: #ef4444;
}

[data-theme="dark"] {
    /* ТЕМНАЯ ТЕМА (НОЧЬ) */
    --bg-body: #090e17; 
    --bg-card: rgba(15, 23, 42, 0.75); 
    --bg-light: rgba(30, 41, 59, 0.5);
    --bg-widget-header: rgba(15, 23, 42, 0.9);
    --bg-input: rgba(0, 0, 0, 0.3);
    
    --text-main: #e2e8f0;
    --text-heading: #ffffff;
    --text-muted: #94a3b8;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-dashed: rgba(255, 255, 255, 0.15);
    
    --accent: #5c67f2;
    --accent-hover: #ffffff;
    
    --bg-info: rgba(59, 130, 246, 0.1);
    --border-info: rgba(59, 130, 246, 0.3);
    --text-info: #93c5fd;
    --bg-success: rgba(16, 185, 129, 0.1);
    --border-success: rgba(16, 185, 129, 0.3);
    --bg-danger: rgba(239, 68, 68, 0.1);
    --border-danger: rgba(239, 68, 68, 0.3);
}

/* ========================================================= */
/* 1. БАЗОВЫЕ НАСТРОЙКИ И ШРИФТЫ                             */
/* ========================================================= */
/* Фикс для Google PageSpeed: заставляем иконки показываться мгновенно (font-display: swap) */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.woff2") format("woff2"),
       url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.ttf") format("truetype");
}
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2"),
       url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.ttf") format("truetype");
}
@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2"),
       url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.ttf") format("truetype");
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: var(--accent); text-decoration: none; transition: 0.2s ease; }
a:hover { color: var(--accent-hover); }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* ========================================================= */
/* 2. ИДЕАЛЬНАЯ ШАПКА VANTRAFF (СТРОГО ПО СЕТКЕ)             */
/* ========================================================= */
.vt-header-wrapper {
    width: 100%;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.vt-header {
    max-width: 1250px; 
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 5px 10px; 
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 15px; 
}

.vt-logo {
    flex: 0 0 240px; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.vt-logo img {
    max-height: 65px; 
    width: 100%; 
    object-fit: contain;
    object-position: left center;
    transition: transform 0.3s ease;
}
.vt-logo img:hover { transform: scale(1.02); }

.vt-title {
    flex: 1 1 auto; 
    min-width: 0; 
    text-align: center;
    padding: 0 30px; 
}

.vt-title h1 {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    font-size: clamp(14px, 1.8vw, 22px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #f59e0b, #fbbf24, #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.3);
}

.vt-banner {
    flex: 0 0 auto; 
    max-width: 480px; 
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.vt-banner img {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.vt-banner img:hover { transform: translateY(-2px); }

@media (max-width: 900px) {
    .vt-header { flex-wrap: wrap; justify-content: center; padding: 10px; gap: 15px; }
    .vt-logo { flex: 0 0 100%; max-width: none; justify-content: center; }
    .vt-logo img { object-position: center; max-height: 50px; }
    .vt-title { order: 3; flex: 0 0 100%; padding: 0 10px; }
    .vt-title h1 { background: none; -webkit-text-fill-color: #f59e0b; color: #f59e0b; font-size: 16px; }
    .vt-banner { order: 2; flex: 0 0 100%; max-width: none; justify-content: center; }
    .vt-banner img { max-height: 50px; }
}

/* ========================================================= */
/* 3. НАДЕЖНАЯ СЕТКА (FLEXBOX)                               */
/* ========================================================= */
.wrapper { display: flex; flex-wrap: wrap; max-width: 1250px; margin: 20px auto; gap: 15px; padding: 0 10px; align-items: flex-start; }

main { 
    flex: 3; min-width: 300px; 
    background: var(--bg-card); 
    backdrop-filter: blur(12px); 
    border-radius: 12px; 
    padding: 20px; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 8px 30px rgba(0,0,0,0.05); 
    transition: 0.3s; 
}

aside { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 15px; }

@media (max-width: 900px) {
    .wrapper { flex-direction: column; }
    main { order: 1; width: 100%; padding: 15px; }
    aside.left-sidebar { order: 2; width: 100%; }
    aside.right-sidebar { order: 3; width: 100%; }
}

/* Глобальные утилиты, используемые на старых страницах (Авторизация, Профиль) */
.auth-input { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 12px; font-size: 14px; outline: none; background: var(--bg-input); color: var(--text-main); transition: 0.3s; box-sizing: border-box; }
.auth-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(55,66,250,0.1); }
.btn-login { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-weight: bold; font-size: 14px; cursor: pointer; transition: 0.3s; }
.btn-login:hover { filter: brightness(1.1); transform: translateY(-2px); }
.auth-links { display: flex; justify-content: space-between; font-size: 12px; margin-top: 12px; }

.stat-row, .sys-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border-dashed); font-size: 13px; color: var(--text-muted); transition: 0.3s;}
.stat-row:last-child, .sys-stat-row:last-child { border: none; padding-bottom: 0; }
.stat-val, .sys-stat-val { font-weight: 800; font-size: 14px; color: var(--text-heading); }