﻿/* ============================================================
   NetKings — общие стили (вынесено из всех шаблонов)
   ============================================================ */

:root {
    --bg-body: #0a0710;
    --bg-panel: #14101c;
    --bg-input: #1b1626;
    --border-color: #2a2238;
    --accent-primary: #8b5cf6;
    --accent-glow: #a78bfa;
    --accent-gold: #c4b5fd;
    --text-main: #ece9f2;
    --text-muted: #8e86a0;
    --danger: #f43f5e;
    --success: #22d3ee;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* --- Навигация --- */
.top-nav {
    background-color: #0f0a14;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; }
.logo-area .icon { color: var(--accent-glow); font-size: 1.4rem; }
.version-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-glow));
    color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-left: 5px;
}
.nav-links { display: flex; gap: 20px; color: var(--text-muted); font-size: 0.9rem; }
.nav-links a { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 6px; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links i { color: var(--accent-primary); }

.user-controls { display: flex; align-items: center; gap: 15px; }
.user-tag {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
    display: flex; align-items: center; gap: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.user-tag:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.08);
}
.user-tag .role { font-weight: 600; font-size: 0.8rem; }

.btn-logout {
    background: transparent; border: 1px solid #4b3a63; color: #ff8fa3;
    padding: 6px 16px; border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; gap: 6px;
}
.btn-logout:hover { background: rgba(244, 63, 94, 0.1); }

/* --- Основной контейнер --- */
.main-container {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    flex: 1 0 auto;
}
.page-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.page-title h1 {
    font-size: 1.8rem; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
    text-shadow: 0 0 24px rgba(167, 139, 250, 0.25);
}
.page-title h1 i { color: var(--accent-primary); }
.page-title p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* --- Панели --- */
.panel {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.06), 0 10px 40px rgba(90, 40, 160, 0.12);
}
.panel-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.02); gap: 12px;
}
.panel-title {
    font-size: 1rem; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
    text-transform: uppercase;
}
.panel-title i { color: var(--accent-gold); }
.panel-badge {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem; padding: 2px 8px; border-radius: 4px;
    font-family: monospace;
}
.panel-badge.ok   { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.4); color: #22c55e; }
.panel-badge.warn { background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.4); color: #f43f5e; }
.panel-body { padding: 20px; }

/* --- Формы --- */
.form-group { margin-bottom: 16px; }
.form-label {
    display: flex; justify-content: space-between;
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; margin-bottom: 8px;
}
.form-control {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 12px; border-radius: 6px;
    outline: none; font-family: inherit; font-size: 0.9rem;
    transition: 0.2s;
}
.form-control:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18); }
.form-control:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- Кнопки --- */
.btn {
    padding: 8px 14px; border-radius: 6px; border: none;
    cursor: pointer; font-weight: 600; font-size: 0.85rem;
    display: inline-flex; align-items: center; gap: 6px; transition: 0.2s;
}
.btn-primary {
    background: linear-gradient(90deg, #6d28d9, #8b5cf6); color: white;
}
.btn-primary:hover {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.5);
}
.btn-secondary {
    background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-main);
}
.btn-secondary:hover { background: var(--bg-body); }

.btn-glow-blue {
    background: linear-gradient(90deg, #6d28d9, #8b5cf6); color: white;
    border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: 0.2s;
}
.btn-glow-blue:hover {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.5);
}
.btn-glow-blue:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-large {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6); color: white;
    padding: 12px 24px; font-size: 1rem; border-radius: 6px; border: none;
    cursor: pointer; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.45); transition: 0.3s;
}
.btn-large:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(139, 92, 246, 0.75); }

/* --- Утилитарные классы --- */
.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent-glow); }
.text-success { color: #22c55e; }
.text-danger  { color: #f43f5e; }
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4        { gap: 4px; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.mt-8         { margin-top: 8px; }
.mt-16        { margin-top: 16px; }
.mb-8         { margin-bottom: 8px; }
.mb-16        { margin-bottom: 16px; }
.mb-24        { margin-bottom: 24px; }
.mono         { font-family: monospace; }