/* ------------------------------ */
/* GLOBAL THEME — Sozvon v3 Style */
/* Dark premium hybrid UI         */
/* ------------------------------ */

/* Цветовая система */
:root {
    --bg-main: #0a0f1a;
    --bg-card: #111827;
    --bg-card-soft: #161f2f;
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;

    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --accent-strong: #60a5fa;

    --danger: #ef4444;
    --success: #10b981;

    --radius: 14px;
}

/* Фон всей страницы */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: radial-gradient(circle at top left, #1f2937, #0b0f19);
    color: var(--text-main);
}

/* -------------------------------- */
/*            HEADER                */
/* -------------------------------- */

.topbar {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 999;
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ЛОГО */
.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-main);
    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

/* КНОПКИ В ПРАВОЙ ЧАСТИ */
.topbar-btn {
    padding: 6px 16px;
    color: var(--text-main);
    background: var(--bg-card-soft);
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    font-size: 14px;
    transition: 0.15s ease;
}

.topbar-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: white;
}

.topbar-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.topbar-btn.primary:hover {
    background: var(--accent-strong);
}

/* -------------------------------- */
/*           USER DROPDOWN          */
/* -------------------------------- */

.userbox {
    position: relative;
    cursor: pointer;
}

.userbox-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    transition: 0.15s;
}

.userbox:hover .userbox-avatar {
    box-shadow: 0 0 10px var(--accent);
}

.userbox-menu {
    position: absolute;
    top: 52px;
    right: 0;

    width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 12px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: 0.15s ease;
    z-index: 9999;
}

.userbox-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.userbox-info {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.userbox-menu-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.userbox-menu-name {
    font-size: 15px;
    font-weight: 600;
}

.userbox-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.userbox-menu a:hover {
    background: var(--accent-soft);
}

.logout {
    color: var(--danger) !important;
}

/* -------------------------------- */
/*         MAIN CONTENT WRAP        */
/* -------------------------------- */

.main-content {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Универсальные карточки */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* Заголовки */
h1, h2, h3 {
    font-weight: 700;
}

.section-title {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Form fields */
input, textarea, select {
    width: 100%;
    padding: 10px 14px;
    margin-top: 8px;

    background: var(--bg-card-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    color: var(--text-main);
    font-size: 15px;
}

input:focus, textarea:focus {
    border-color: var(--accent);
    outline: none;
}

/* Кнопки */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-strong);
}
