/* Общие стили для режима "нематрица" */
body.matrix-inactive {
    background-color: white !important;
    color: #000 !important; /* Чёрный для максимального контраста */
}

body.matrix-inactive input[type="text"],
body.matrix-inactive input[type="password"],
body.matrix-inactive input[type="email"],
body.matrix-inactive textarea,
body.matrix-inactive select,
body.matrix-inactive button,
body.matrix-inactive input[type="submit"],
body.matrix-inactive input[type="button"],
body.matrix-inactive a.button,
body.matrix-inactive .menu-item,
body.matrix-inactive .widget-area,
body.matrix-inactive .widget-area .widget,
body.matrix-inactive .widget-area .widget-title,
body.matrix-inactive #comment,
body.matrix-inactive #author,
body.matrix-inactive #email,
body.matrix-inactive #url {
    background-color: white !important;
    color: #000 !important; /* Чёрный для максимального контраста */
    border: 1px solid #999 !important; /* Более тёмная граница для контраста */
    box-shadow: none !important;
}

body.matrix-inactive img {
    box-shadow: none !important;
    filter: none !important; /* Убираем возможные фильтры, которые могут добавлять зеленоватый оттенок */
}

body.matrix-inactive .telegram-icon-container {
    border-color: #999 !important; /* Более тёмная граница */
    animation: none !important;
}

body.matrix-inactive .telegram-link {
    color: #003087 !important; /* Тёмно-синий для ссылок */
}

body.matrix-inactive .telegram-link:hover {
    color: #0056D2 !important; /* Яркий синий при наведении */
}

body.matrix-inactive .monsterinsights-widget-popular-posts-list li {
    border-color: #999 !important; /* Более тёмная граница */
}

body.matrix-inactive .monsterinsights-widget-popular-posts-title {
    color: #000 !important; /* Чёрный для заголовков */
}

body.matrix-inactive .monsterinsights-widget-popular-posts-title:hover {
    color: #003087 !important; /* Тёмно-синий при наведении */
    transform: none !important;
}

/* Стили для неактивной матрицы (белый фон и темный текст) */
body.matrix-inactive #site-colophon {
    background-color: white !important;
    color: #000 !important; /* Чёрный для текста */
}

body.matrix-inactive #site-colophon a {
    color: #003087 !important; /* Тёмно-синий для ссылок */
}

body.matrix-inactive #site-colophon a:hover {
    color: #0056D2 !important; /* Яркий синий при наведении */
}

body.matrix-inactive #site-footer-credits {
    border-top: 1px solid #999 !important; /* Более тёмная граница */
}

body.matrix-inactive .site-footer-copyright {
    color: #000 !important; /* Чёрный для текста */
}

body.matrix-inactive .designer-credit a {
    color: #003087 !important; /* Тёмно-синий для ссылок */
}

/* Стили для неактивной матрицы (белый фон и темный текст) */
body.matrix-inactive #site-prefooter {
    background-color: white !important;
    color: #000 !important; /* Чёрный для текста */
}

body.matrix-inactive #site-prefooter a {
    color: #003087 !important; /* Тёмно-синий для ссылок */
}

body.matrix-inactive #site-prefooter a:hover {
    color: #0056D2 !important; /* Яркий синий при наведении */
}

body.matrix-inactive #site-prefooter .widget-title {
    color: #000 !important; /* Чёрный для заголовков */
}

/* Стили для неактивной матрицы (белый фон и темный текст) */
body.matrix-inactive .marquee-container {
    background-color: white !important;
    color: #000 !important; /* Чёрный для текста */
}

body.matrix-inactive .marquee-container a {
    color: #003087 !important; /* Тёмно-синий для ссылок */
}

body.matrix-inactive .marquee-container a:hover {
    color: #0056D2 !important; /* Яркий синий при наведении */
}

/* Стили для кнопок меню в режиме "не матрица" */
body.matrix-inactive .menu-item {
    font-weight: bold !important;
    font-size: 18px !important;
    font-family: 'OCR A Extended', 'Courier New', Courier, monospace !important;
    background-color: white !important;
    color: #000 !important; /* Чёрный для текста */
    border: 2px solid #555 !important; /* Более тёмная граница */
    padding: 12px 24px !important;
    border-radius: 5px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background-color 0.3s !important;
    margin: 10px !important;
    display: inline-block !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

body.matrix-inactive .menu-item:hover {
    background-color: #e0e0e0 !important; /* Более светлый серый фон при наведении */
    border-color: #333 !important; /* Более тёмная граница при наведении */
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.3) !important;
    transform: scale(1.05) !important;
}

body.matrix-inactive .menu-item:active {
    background-color: #d0d0d0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transform: scale(1) !important;
}

body.matrix-inactive .menu-item .menu-text {
    color: #000 !important; /* Чёрный для текста */
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

body.matrix-inactive .menu-item:hover .menu-text {
    color: #003087 !important; /* Тёмно-синий при наведении */
}

body.matrix-inactive .menu-item:last-child {
    margin-right: 0 !important;
}

/* Дополнительные стили для текста на странице */
body.matrix-inactive h1,
body.matrix-inactive h2,
body.matrix-inactive h3,
body.matrix-inactive h4,
body.matrix-inactive h5,
body.matrix-inactive h6 {
    color: #000 !important; /* Чёрный для заголовков */
}

/* Стили для виджетов */
body.matrix-inactive .widget a {
    color: #003087 !important; /* Тёмно-синий для ссылок в виджетах */
}

body.matrix-inactive .widget a:hover {
    color: #0056D2 !important; /* Яркий синий при наведении */
}

body.matrix-inactive #site-prefooter .widget-title {
    color: #1a1a1a !important; /* Темный цвет для контраста */
    font-size: 20px !important; /* Увеличенный размер шрифта для заметности */
    font-weight: 700 !important; /* Жирный шрифт */
    text-transform: uppercase !important; /* Верхний регистр для единообразия */
    letter-spacing: 1px !important; /* Межбуквенный интервал */
    border-bottom: 2px solid #0066cc !important; /* Синяя линия снизу для акцента */
    padding-bottom: 5px !important; /* Отступ снизу */
    margin-bottom: 15px !important; /* Отступ под заголовком */
}

body.matrix-inactive #pseudo-unique-content,
body.matrix-inactive .site-section-wrapper,
body.matrix-inactive .site-column-wrapper,
body.matrix-inactive .entry-content {
    background: #fff !important;
    color: #000 !important;
}

/* ═══════════════════════════════════════════════════════════════
   НЕ-МАТРИЦА: AI Text Generator — светлый стиль (восстановление)
═══════════════════════════════════════════════════════════════ */

body.matrix-inactive .atg-wrap {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 24px rgba(15,23,42,.08) !important;
    color: #1e293b !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
body.matrix-inactive .atg-tabs { background: #f8fafc !important; border-bottom-color: #e2e8f0 !important; }
body.matrix-inactive .atg-tab { background: transparent !important; color: #64748b !important; }
body.matrix-inactive .atg-tab.atg-tab--active,
body.matrix-inactive .atg-wrap .atg-tabs .atg-tab.atg-tab--active {
    background: #4f46e5 !important;
    color: #fff !important;
    border-bottom-color: #3730a3 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
body.matrix-inactive .atg-left { background: #fff !important; color: #1e293b !important; }
body.matrix-inactive .atg-label,
body.matrix-inactive .atg-panel__title { color: #374151 !important; text-shadow: none !important; }
body.matrix-inactive .atg-textarea,
body.matrix-inactive .atg-input,
body.matrix-inactive .atg-sidebar-input,
body.matrix-inactive .atg-sidebar-textarea {
    background: #f8fafc !important;
    color: #1e293b !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: none !important;
}
body.matrix-inactive .atg-result { background: #f8fafc !important; color: #1e293b !important; border-color: #e2e8f0 !important; }
body.matrix-inactive .atg-btn { background: #f1f5f9 !important; color: #374151 !important; border: 1.5px solid #e2e8f0 !important; box-shadow: none !important; border-radius: 9px !important; }
body.matrix-inactive .atg-btn--primary { background: linear-gradient(135deg,#4f46e5,#6366f1) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 2px 10px rgba(79,70,229,.35) !important; }
body.matrix-inactive .atg-sidebar { background: #fff !important; border-right-color: #e2e8f0 !important; }
body.matrix-inactive .atg-sidebar__header { background: linear-gradient(135deg,#4f46e5,#7c3aed) !important; }

/* ═══════════════════════════════════════════════════════════════
   НЕ-МАТРИЦА: WP Text Processor — светлый стиль (восстановление)
═══════════════════════════════════════════════════════════════ */

body.matrix-inactive #tp-wrap,
body.matrix-inactive .text-processor-container {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 24px rgba(15,23,42,.08) !important;
    color: #1e293b !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
}
body.matrix-inactive .text-processor-buttons-fixed { background: #fff !important; }
body.matrix-inactive .text-processor-button {
    background: #fff !important;
    color: #374151 !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: none !important;
    border-radius: 9px !important;
}
body.matrix-inactive .text-processor-button:hover {
    background: #f0f4ff !important;
    border-color: #818cf8 !important;
    color: #4338ca !important;
    box-shadow: 0 2px 8px rgba(79,70,229,.12) !important;
    transform: translateY(-1px) !important;
}
body.matrix-inactive .text-processor-output {
    background: #f8fafc !important;
    color: #1e293b !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: none !important;
    font-family: 'Inter', sans-serif !important;
}
body.matrix-inactive .text-processor-info-box {
    background: #f0f4ff !important;
    color: #4338ca !important;
    border-bottom-color: #e0e7ff !important;
}
body.matrix-inactive .text-processor-special-buttons { background: #f8fafc !important; border-top-color: #e2e8f0 !important; }
body.matrix-inactive .text-processor-special-button {
    background: linear-gradient(135deg,#4f46e5,#6366f1) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(79,70,229,.3) !important;
    text-shadow: none !important;
    border-radius: 10px !important;
}
body.matrix-inactive .modal-content,
body.matrix-inactive .modal-extracted-content {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    box-shadow: 0 20px 60px rgba(15,23,42,.2) !important;
}
body.matrix-inactive .modal-content h3 { color: #0f172a !important; text-shadow: none !important; }
body.matrix-inactive .modal-content textarea,
body.matrix-inactive .modal-content input { background: #f8fafc !important; color: #1e293b !important; border-color: #e2e8f0 !important; }
body.matrix-inactive .modal-content button { background: #f1f5f9 !important; color: #374151 !important; border-color: #e2e8f0 !important; }
body.matrix-inactive .parser-modal-buttons button.btn-primary {
    background: linear-gradient(135deg,#4f46e5,#6366f1) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(79,70,229,.3) !important;
    text-shadow: none !important;
}
