:root {
    --steel-950: #0e2b33; --steel-900: #1a3f48; --steel-800: #25535e; --steel-700: #306a76;
    --steel-600: #3e828f; --steel-500: #549eac; --steel-400: #78b9c6; --steel-300: #a3d2db;
    --steel-200: #c9e6ec; --steel-100: #e3f1f5; --steel-50: #f0f7f9;
    --amber-500: #F59E0B; --amber-400: #FBBF24; --amber-300: #FCD34D;
    --green-500: #10B981; --green-400: #34D399;
    --red-500: #EF4444;
    --white: #fafbfc;
    --gray-50: #eef0f2; --gray-100: #e2e5e8; --gray-200: #d4d8dc;
    --gray-400: #94a3b8; --gray-500: #6b7280; --gray-600: #4b5563;
    --gray-700: #374151; --gray-800: #1f2937; --gray-900: #111827;
    --radius-sm: 12px; --radius: 16px; --radius-lg: 24px; --radius-xl: 32px; --radius-full: 50px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.04); --shadow: 0 4px 16px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.06); --shadow-xl: 0 20px 50px rgba(0,0,0,.08);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: #e2e5e8; color: var(--gray-800); line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; } a { color: inherit; text-decoration: none; } ul { list-style: none; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.animate-in { animation: fadeIn .4s ease forwards; } .animate-scale { animation: fadeInScale .35s ease forwards; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mb-6 { margin-bottom: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-full); font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; transition: var(--transition); font-family: inherit; white-space: nowrap; text-decoration: none; }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--steel-500); color: #fff; box-shadow: 0 4px 16px rgba(84,158,172,.25); }
.btn-primary:hover { background: var(--steel-600); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(84,158,172,.35); }
.btn-accent { background: var(--amber-500); color: #1a1a1a; } .btn-accent:hover { background: var(--amber-400); }
.btn-outline { background: transparent; border: 1.5px solid var(--steel-500); color: var(--steel-700); }
.btn-outline:hover { background: var(--steel-50); border-color: var(--steel-500); }
.btn-danger { background: var(--red-500); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: .8rem; } .btn-block { width: 100%; }

.form-group { margin-bottom: 16px; } .form-group label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--gray-600); margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px 16px; background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); color: var(--gray-800); font-size: 0.9rem; transition: var(--transition); }
.form-input:focus { outline: none; border-color: var(--steel-400); box-shadow: 0 0 0 3px rgba(84,158,172,.1); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23549eac' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-position: right 12px center; background-repeat: no-repeat; background-size: 20px; padding-right: 40px; cursor: pointer; }

.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 24px; transition: var(--transition); box-shadow: var(--shadow); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); }

.stat-card { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); transition: var(--transition); box-shadow: var(--shadow-sm); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(84,158,172,0.12), rgba(14,43,51,0.06)); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--steel-600); flex-shrink: 0; }
.stat-info { flex: 1; } .stat-label { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 4px; } .stat-value { font-size: 1.6rem; font-weight: 700; color: var(--gray-900); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th { padding: 14px 18px; text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--gray-600); text-transform: uppercase; background: var(--gray-50); border-bottom: 2px solid var(--gray-200); }
td { padding: 14px 18px; font-size: 0.875rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-200); }
tr:hover td { background: var(--steel-50); }

.badge { display: inline-flex; padding: 5px 12px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-success { background: #ECFDF5; color: #059669; }
.badge-warning { background: #FEF3C7; color: #D97706; }
.badge-danger { background: #FEF2F2; color: #DC2626; }
.badge-info { background: linear-gradient(135deg, rgba(84,158,172,0.12), rgba(14,43,51,0.06)); color: var(--steel-700); }
.badge-neutral { background: var(--gray-100); color: var(--gray-600); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.filters { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; padding: 20px 24px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.filter-item { flex: 1; min-width: 140px; } .filter-item label { display: block; font-size: 0.75rem; font-weight: 500; color: var(--gray-500); margin-bottom: 6px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; } .pagination a, .pagination span { padding: 10px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500; color: var(--gray-600); background: var(--white); border: 1px solid var(--gray-200); transition: var(--transition); } .pagination a:hover { background: var(--steel-500); color: #fff; } .pagination .active { background: var(--steel-500); color: #fff; }

.empty-state { text-align: center; padding: 60px 24px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.empty-state i { font-size: 3rem; color: var(--gray-400); margin-bottom: 16px; } .empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--gray-800); } .empty-state p { color: var(--gray-500); }

/* Сайдбар с акцентом */
.app-layout { display: flex; min-height: 100vh; }
.app-sidebar { width: 72px; background: linear-gradient(180deg, var(--steel-950) 0%, var(--steel-900) 100%); border-right: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; transition: width .3s; overflow-x: hidden; overflow-y: auto; }
.app-sidebar:hover { width: 260px; }
.sidebar-header { padding: 24px 16px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-logo { font-size: 1.5rem; color: var(--steel-400); } .sidebar-logo-text { display: none; font-size: 1.1rem; font-weight: 700; color: #fff; margin-left: 8px; }
.app-sidebar:hover .sidebar-logo-text { display: inline; }
.sidebar-user { display: none; margin-top: 12px; } .app-sidebar:hover .sidebar-user { display: block; }
.sidebar-user-name { font-weight: 600; font-size: 0.85rem; color: #fff; } .sidebar-user-role { font-size: 0.65rem; color: var(--steel-300); text-transform: uppercase; margin-top: 2px; }
.sidebar-nav { flex: 1; padding: 16px 8px; } .sidebar-section { margin-bottom: 20px; }
.sidebar-section-title { display: none; font-size: 0.6rem; font-weight: 600; color: var(--steel-400); text-transform: uppercase; padding: 0 12px 8px; }
.app-sidebar:hover .sidebar-section-title { display: block; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--steel-200); font-size: 0.875rem; transition: var(--transition); white-space: nowrap; margin-bottom: 2px; }
.sidebar-link i { width: 22px; text-align: center; font-size: 1.1rem; color: var(--steel-400); } .sidebar-link span { display: none; }
.app-sidebar:hover .sidebar-link span { display: inline; }
.sidebar-link:hover { background: rgba(255,255,255,.06); color: #fff; } .sidebar-link.active { background: var(--steel-600); color: #fff; } .sidebar-link.active i { color: #fff; }
.sidebar-footer { padding: 16px 8px; border-top: 1px solid rgba(255,255,255,.06); }
.sidebar-logout { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); color: #FCA5A5; font-size: 0.875rem; transition: var(--transition); } .sidebar-logout span { display: none; }
.app-sidebar:hover .sidebar-logout span { display: inline; } .sidebar-logout:hover { background: rgba(239,68,68,.1); }
.app-main { flex: 1; margin-left: 72px; padding: 28px 32px; transition: margin-left .3s; min-height: 100vh; }
.app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.app-header h1 { font-size: 1.6rem; font-weight: 700; color: var(--gray-900); } .app-header-date { font-size: 0.85rem; color: var(--gray-500); }

.burger-btn { display: none; position: fixed; top: 12px; left: 12px; z-index: 300; background: var(--steel-600); border: none; color: #fff; width: 44px; height: 44px; border-radius: var(--radius-sm); font-size: 1.2rem; cursor: pointer; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.15); z-index: 150; } .sidebar-overlay.active { display: block; }

.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: #e2e5e8; }
.auth-card { width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 44px 36px; box-shadow: var(--shadow-xl); animation: fadeInScale .4s ease; }
.auth-logo { text-align: center; margin-bottom: 32px; } .auth-logo i { font-size: 2.8rem; color: var(--steel-500); }
.auth-logo h1 { font-size: 1.6rem; margin-top: 12px; color: var(--gray-900); font-weight: 700; } .auth-logo p { color: var(--gray-500); }
.auth-error { background: #FEF2F2; border: 1px solid #FECACA; padding: 12px 16px; border-radius: var(--radius-sm); color: var(--red-500); font-size: 0.85rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .app-sidebar { transform: translateX(-100%); width: 260px; } .app-sidebar.mobile-open { transform: translateX(0); }
    .app-sidebar .sidebar-link span, .app-sidebar .sidebar-section-title, .app-sidebar .sidebar-logo-text, .app-sidebar .sidebar-logout span, .app-sidebar .sidebar-user { display: inline!important; }
    .app-main { margin-left: 0; padding: 64px 16px 24px; }
    .burger-btn { display: flex; align-items: center; justify-content: center; }
    .filters { flex-direction: column; padding: 16px; } .filter-item { min-width: 100%; } .btn { width: 100%; }
    th, td { padding: 10px 12px; font-size: 0.8rem; } .stat-card { padding: 16px; } .stat-value { font-size: 1.3rem; } .auth-card { padding: 28px 20px; }
}
@media (max-width: 480px) { .stat-card { padding: 14px; } .card { padding: 18px; } }

/* Шрифт Inter */
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important; }
h1, h2, h3, h4, h5, h6, .card-title, .stat-value, .btn, .badge, th { font-family: 'Inter', sans-serif; }
