/* ============================================================
   AIVIO FUSION LIGHT EDITION — STRICT CONTRAST v3
   Sidebar Light Gray — #E0E2E6
   Работает только при body.white-content
   ============================================================ */

/* ------------------------------------------------------------
   1. LIGHT CORE — фон, токены, типографика
   ------------------------------------------------------------ */

body.white-content {
    --color-bg: #EDEFF2;
    /* фон страницы */
    --color-bg-elevated: #FFFFFF;
    /* карточки */
    --color-bg-sidebar: #E0E2E6;
    /* sidebar */
    --color-text: #1A1A1A;
    --color-text-muted: #5A5A5A;

    --color-accent: #2CD4D9;
    --color-accent-hover: #1BC4C9;

    --radius-sm: 6px;
    --radius-md: 10px;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.18);

    background: var(--color-bg) !important;
    color: var(--color-text) !important;
}

/* ------------------------------------------------------------
   2. NAVIGATION — sidebar + header
   ------------------------------------------------------------ */

/* HEADER */
body.white-content .navbar {
    background: var(--color-bg-elevated) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.20) !important;
    color: var(--color-text) !important;
}

/* SIDEBAR */
body.white-content .sidebar {
    background: var(--color-bg-sidebar) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.25) !important;
}

/* SIDEBAR LINKS — основной текст */
body.white-content .sidebar .nav li>a {
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-weight: 500;
}

/* --- ВСТРОЕННЫЙ FIX: перекрашиваем текст и иконки --- */
body.white-content .sidebar .nav li>a p,
body.white-content .sidebar .nav li>a i {
    color: #2A2A2A !important;
    /* тёмный текст */
}

/* HOVER */
body.white-content .sidebar .nav li>a:hover {
    background: rgba(0, 0, 0, 0.12) !important;
}

body.white-content .sidebar .nav li>a:hover p,
body.white-content .sidebar .nav li>a:hover i {
    color: #000 !important;
}

/* ACTIVE */
body.white-content .sidebar .nav li.active>a {
    background: rgba(44, 212, 217, 0.25) !important;
}

body.white-content .sidebar .nav li.active>a p,
body.white-content .sidebar .nav li.active>a i {
    color: #2CD4D9 !important;
    font-weight: 600;
}

/* ------------------------------------------------------------
   3. CARDS — строгий контраст
   ------------------------------------------------------------ */

body.white-content .card {
    background: var(--color-bg-elevated) !important;
    border: 1px solid rgba(0, 0, 0, 0.20) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--color-text) !important;
}

body.white-content .card-header {
    background: var(--color-bg-elevated) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.20) !important;
    font-weight: 600;
}

/* ------------------------------------------------------------
   4. TABLES — максимальная читаемость
   ------------------------------------------------------------ */

body.white-content .table {
    color: var(--color-text);
}

body.white-content .table th,
body.white-content .table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.25) !important;
}

body.white-content .table thead th {
    border-bottom: 2px solid rgba(0, 0, 0, 0.35) !important;
    font-weight: 600;
    color: #000;
}

body.white-content .table tbody tr:hover {
    background: rgba(0, 0, 0, 0.08) !important;
}

/* ------------------------------------------------------------
   5. KPI CARDS
   ------------------------------------------------------------ */

body.white-content .kpi-card {
    background: var(--color-bg-elevated);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.20);
    box-shadow: var(--shadow-sm);
}

body.white-content .kpi-title {
    color: var(--color-text-muted);
    font-size: 14px;
}

body.white-content .kpi-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-accent);
}

/* ------------------------------------------------------------
   6. INPUTS — строгие бордеры
   ------------------------------------------------------------ */

body.white-content .form-control {
    background: var(--color-bg-elevated) !important;
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
    color: var(--color-text) !important;
    border-radius: var(--radius-sm);
}

body.white-content .form-control:focus {
    border-color: var(--color-accent-hover) !important;
    box-shadow: 0 0 0 2px rgba(44, 212, 217, 0.25) !important;
}

/* ------------------------------------------------------------
   7. SOLID BUTTONS — строгий hover
   ------------------------------------------------------------ */

body.white-content .btn {
    border-radius: var(--radius-sm) !important;
    padding: 8px 18px !important;
    font-weight: 500 !important;
    border: none !important;
}

/* PRIMARY */
body.white-content .btn-primary {
    background: var(--color-accent) !important;
    color: #0F0F0F !important;
}

body.white-content .btn-primary:hover {
    background: var(--color-accent-hover) !important;
}

/* SECONDARY */
body.white-content .btn-secondary {
    background: #D0D0D0 !important;
    color: #1A1A1A !important;
}

body.white-content .btn-secondary:hover {
    background: #C0C0C0 !important;
}

/* GHOST */
body.white-content .btn-ghost {
    background: transparent !important;
    color: var(--color-accent) !important;
}

body.white-content .btn-ghost:hover {
    background: rgba(44, 212, 217, 0.15) !important;
}

/* --- АКЦЕНТНЫЕ КНОПКИ --- */

body.white-content .btn-tech {
    background: #2CD4D9 !important;
    color: #0F0F0F !important;
}

body.white-content .btn-tech:hover {
    background: #1BC4C9 !important;
}

body.white-content .btn-ice {
    background: #3BA7FF !important;
    color: #0F0F0F !important;
}

body.white-content .btn-ice:hover {
    background: #4BB7FF !important;
}

body.white-content .btn-deep {
    background: #0097A7 !important;
    color: #FFFFFF !important;
}

body.white-content .btn-deep:hover {
    background: #00A7B7 !important;
}

body.white-content .btn-neon {
    background: #00F0FF !important;
    color: #0F0F0F !important;
}

body.white-content .btn-neon:hover {
    background: #10FFFF !important;
}

body.white-content .btn-corporate {
    background: #4A90E2 !important;
    color: #FFFFFF !important;
}

body.white-content .btn-corporate:hover {
    background: #5AA0F2 !important;
}

body.white-content .btn-aurora {
    background: #7A5CFF !important;
    color: #FFFFFF !important;
}

body.white-content .btn-aurora:hover {
    background: #8A6CFF !important;
}

body.white-content .btn-crystal {
    background: #A8FFF1 !important;
    color: #0F0F0F !important;
}

body.white-content .btn-crystal:hover {
    background: #B8FFF9 !important;
}

body.white-content .btn-fusion {
    background: #FF6FD8 !important;
    color: #FFFFFF !important;
}

body.white-content .btn-fusion:hover {
    background: #FF7FE8 !important;
}

body.white-content .btn-pulse {
    background: #7A5CFF !important;
    color: #FFFFFF !important;
}

body.white-content .btn-pulse:hover {
    background: #8A6CFF !important;
}

/* ------------------------------------------------------------
   8. MISC
   ------------------------------------------------------------ */

body.white-content .text-muted {
    color: var(--color-text-muted) !important;
}

/* --- LOGOUT FIX --- */
body.white-content .sidebar .sidebar-logout {
    background: transparent;
    border: none;
    padding: 10px 16px;
    width: 100%;
    display: flex;
    align-items: center;
    color: #2A2A2A !important;
    cursor: pointer;
}

body.white-content .sidebar .sidebar-logout:hover {
    background: rgba(0, 0, 0, 0.12) !important;
    color: #000 !important;
}

body.white-content .sidebar .sidebar-logout i,
body.white-content .sidebar .sidebar-logout p {
    color: inherit !important;
}

.footer {
    margin-bottom: 0px !important;
    /* поднимаем футер */
}

/* ============================================================
   9. LANDING SUPPORT — LIGHT
   ============================================================ */

body.white-content .main-panel,
body.white-content .main-panel>.content {
    background: var(--color-bg) !important;
    color: var(--color-text) !important;
}

body.white-content .landing-section,
body.white-content .hero-section,
body.white-content .spotlight,
body.white-content .features,
body.white-content .cta-section,
body.white-content .use-cases-section,
body.white-content .how-it-works-section,
body.white-content .faq-section {
    color: var(--color-text) !important;
}

body.white-content .landing-section h1,
body.white-content .landing-section h2,
body.white-content .landing-section h3,
body.white-content .landing-section h4,
body.white-content .hero-section h1,
body.white-content .hero-section h2,
body.white-content .spotlight h2,
body.white-content .cta-section h2 {
    color: #111827 !important;
}

body.white-content .landing-section p,
body.white-content .hero-section p,
body.white-content .spotlight p,
body.white-content .cta-section p,
body.white-content .section-subtitle,
body.white-content .text-muted {
    color: #5b6475 !important;
    opacity: 1 !important;
}

/* Чтобы bg-light из Bootstrap был читаемым */
body.white-content .bg-light,
body.white-content .section.bg-light {
    background: #f4f7fb !important;
    color: var(--color-text) !important;
}

/* Карточки лендинга */
body.white-content .landing-card,
body.white-content .step-card,
body.white-content .info-card,
body.white-content .feature-box {
    background: #ffffff !important;
    border: 1px solid rgba(20, 30, 55, 0.08) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}