﻿:root {
    --text-secondary: #999999;
    --text-tertiary: #666666;
    --bg-secondary: rgba(10, 10, 10, 0.82);
    --accent-strong: #e6e6e6;
}

body {
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 12% 20%, rgba(255, 255, 255, 0.06), transparent 60%),
        radial-gradient(1000px 560px at 80% 15%, rgba(255, 255, 255, 0.05), transparent 60%),
        radial-gradient(600px 400px at 50% 70%, rgba(255, 255, 255, 0.08), transparent 70%),
        linear-gradient(135deg, rgba(8, 8, 8, 0.9), rgba(0, 0, 0, 0.95));
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.main,
.main-content {
    position: relative;
    z-index: 1;
}

:where(a) {
    color: inherit;
    text-decoration: none;
}

:where(.mobile-header) {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border, var(--border-color, #222222));
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 101;
}

:where(.mobile-logo) {
    font-size: 18px;
    font-weight: 600;
}

:where(.menu-button) {
    background: none;
    border: 0;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
}

:where(.sidebar) {
    width: var(--sidebar, var(--sidebar-width, 240px));
    background: var(--bg-secondary);
    border-right: 1px solid var(--border, var(--border-color, #222222));
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

:where(.sidebar-logo) {
    padding: 24px 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid var(--border, var(--border-color, #222222));
}

:where(.logo-text) {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

:where(.logo-primary) {
    color: var(--text-primary);
}

:where(.logo-suffix) {
    color: var(--text-tertiary);
}

:where(.sidebar-nav) {
    flex: 1;
    padding: 20px 0;
}

:where(.nav-section) {
    margin-bottom: 24px;
}

:where(.nav-section-title) {
    padding: 0 20px;
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-weight: 600;
}

:where(.nav-item) {
    padding: 10px 20px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    font-size: 14px;
    border-left: 2px solid transparent;
    transition: 0.2s;
}

:where(.nav-item i) {
    width: 16px;
    margin-right: 12px;
    opacity: 0.8;
    font-size: 14px;
}

:where(.nav-item:hover) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

:where(.nav-item.active) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left-color: var(--accent, var(--accent-color, #ffffff));
}

:where(.sidebar-overlay) {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
}

:where(.sidebar-overlay.active) {
    display: block;
}

@media (max-width: 768px) {
    :where(.mobile-header) {
        display: flex;
    }

    :where(.sidebar) {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    :where(.sidebar.active) {
        transform: translateX(0);
    }

    :where(.main, .main-content) {
        margin-left: 0;
        padding: 80px 20px 40px;
    }
}

.card {
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

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

.status {
    display: none;
}

.status.error {
    color: #ff6b6b;
    display: block;
}

.status.success {
    color: #51cf66;
    display: block;
}

.status.info {
    color: #4dabf7;
    display: block;
}

.btn:disabled,
.btn[aria-busy="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn[aria-busy="true"] {
    pointer-events: none;
}

.text-input[aria-invalid="true"],
.select-input[aria-invalid="true"] {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.06);
}

.error-message {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.error-message[role="alert"] {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
