/**
 * Filament VT Orbit Nexus theme — секции, код, панели
 * Акцент #fa7f02, тёмная тема
 * Секции применяются глобально в admin-панели
 */
:root {
    --vt-accent: #fa7f02;
    --vt-accent-light: #ff9b42;
    --vt-accent-rgb: 250, 127, 2;
    --vt-darker: #2a2a2b;
    --vt-dark: #434345;
    --vt-gray: rgba(255, 255, 255, 0.7);
}

/* VT-стиль секций — только на страницах документации и форм */
.fi-doc-vt .fi-section,
.fi-vt-forms .fi-section {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.fi-doc-vt .fi-section:hover,
.fi-vt-forms .fi-section:hover {
    border-color: rgba(var(--vt-accent-rgb), 0.25);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.fi-doc-vt .fi-section-header,
.fi-vt-forms .fi-section-header {
    background: linear-gradient(135deg, rgba(var(--vt-accent-rgb), 0.08), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}
.fi-doc-vt .fi-section-header::before,
.fi-vt-forms .fi-section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--vt-accent), var(--vt-accent-light));
    border-radius: 4px 0 0 0;
}
.fi-doc-vt .fi-section-header-heading,
.fi-vt-forms .fi-section-header-heading {
    color: white !important;
    font-weight: 700;
}
.fi-doc-vt .fi-section-header-description,
.fi-vt-forms .fi-section-header-description {
    color: var(--vt-gray) !important;
}

.fi-doc-vt .fi-section-content {
    padding: 1.5rem;
}

/* Код и pre — VT стиль (fi-doc-code работает везде) */
.fi-doc-code,
.fi-doc-vt pre,
.fi-doc-vt .fi-doc-code {
    background: rgba(0, 0, 0, 0.45) !important;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--vt-accent);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    white-space: pre;
}
.fi-doc-vt pre code,
.fi-doc-vt .fi-doc-code code {
    color: inherit;
    background: none;
}
.fi-doc-vt code:not(pre code) {
    color: var(--vt-accent);
    background: rgba(var(--vt-accent-rgb), 0.12);
    padding: 0.125rem 0.375rem;
    border-radius: 6px;
    font-size: 0.8125rem;
}
.fi-doc-vt p {
    color: var(--vt-gray);
    line-height: 1.6;
}
.fi-doc-vt strong {
    color: white;
}
.fi-doc-vt h3 {
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.fi-doc-vt ul {
    color: var(--vt-gray);
    line-height: 1.7;
}
.fi-doc-vt ul li {
    margin-bottom: 0.5rem;
}
.fi-doc-vt ul li code {
    color: var(--vt-accent);
}

/* VT стиль полей формы — глобально для всей панели */
.fi-input,
.fi-section-content input,
.fi-section-content textarea,
.fi-section-content select,
.fi-fo-field input,
.fi-fo-field textarea,
.fi-fo-field select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: white !important;
}
.fi-input:focus,
.fi-section-content input:focus,
.fi-section-content textarea:focus,
.fi-section-content select:focus,
.fi-fo-field input:focus,
.fi-fo-field textarea:focus,
.fi-fo-field select:focus {
    border-color: var(--vt-accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--vt-accent-rgb), 0.2) !important;
}
.fi-fo-field-label,
.fi-input-wrp-label,
.fi-section-content label {
    color: white !important;
    font-weight: 500;
}
.fi-fo-field-wrp-hint,
.fi-vt-hint,
.fi-section-content form p.fi-vt-hint {
    color: var(--vt-gray) !important;
    font-size: 0.875rem;
}

/* Виджет — код */
.fi-widget code {
    color: var(--vt-accent);
    background: rgba(var(--vt-accent-rgb), 0.12);
    padding: 0.125rem 0.375rem;
    border-radius: 6px;
}
