/* ========== ПЕРЕМЕННЫЕ ========== */
:root {
    --bg-dark: #0B0C10;
    --bg-surface: #1A1E2A;
    --bg-card: #1E2432;
    --bg-card-hover: #252B3A;
    --accent-white: #FFFFFF;
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: #A0A8C0;
    --text-muted: #6E7A8A;
    --border-light: #2A3442;
    --status-sent: #3B82F6;
    --status-approved: #10B981;
    --status-rejected: #EF4444;
    --gradient-glow: linear-gradient(145deg, #1E2432 0%, #1A1E2A 100%);
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ========== ГЛОБАЛЬНЫЕ СБРОСЫ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
}

/* ========== CANVAS-ПОДЛОЖКА (СОТЫ) ========== */
#hexCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
}

/* ========== КОНТЕЙНЕРЫ ========== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========== ШАПКА ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 32px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg {
    width: 48px;
    height: 48px;
}

.logo-text {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--text-secondary);
    font-size: 14px;
    display: block;
    margin-top: 2px;
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary {
    background: white;
    color: #0B0C10;
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ========== КАРТОЧКИ ========== */
.card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ========== СЕТКИ ========== */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== БОКОВОЕ МЕНЮ ========== */
.sidebar {
    width: 280px;
    background: rgba(26, 30, 42, 0.6);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding: 32px 20px;
    height: calc(100vh - 90px);
    position: sticky;
    top: 90px;
    border-radius: 24px;
    margin-right: 32px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-left: 3px solid white;
}

/* ========== СТАТУСЫ ========== */
.badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-sent {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-approved {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ========== ФАЙЛЫ ========== */
.file-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 40px;
    font-size: 13px;
}

.cloud-icon {
    color: #A0A8C0;
}

/* ========== УТИЛИТЫ ========== */
.dashboard-layout {
    display: flex;
    gap: 32px;
}

.main-content {
    flex: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2A3442, #1E2432);
    border: 1px solid rgba(255, 255, 255, 0.1);
}