/* Основные переменные */ :root { --primary-color: #2563eb; --secondary-color: #64748b; --success-color: #059669; --danger-color: #dc2626; --warning-color: #d97706; --info-color: #0891b2; --bg-primary: #ffffff; --bg-secondary: #f8fafc; --bg-tertiary: #f1f5f9; --text-primary: #1e293b; --text-secondary: #64748b; --text-muted: #94a3b8; --border-color: #e2e8f0; --border-hover: #cbd5e1; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1); --sidebar-width: 280px; --border-radius: 8px; --transition: all 0.2s ease; } /* Темная тема */ body.dark-theme { --bg-primary: #0f172a; --bg-secondary: #1e293b; --bg-tertiary: #334155; --text-primary: #f1f5f9; /* ← ИЗМЕНЕНО: сделано светлее */ --text-secondary: #e2e8f0; /* ← ИЗМЕНЕНО: сделано светлее */ --text-muted: #94a3b8; /* ← ИЗМЕНЕНО: сделано светлее */ --border-color: #334155; --border-hover: #475569; } /* ДОБАВИТЬ СРАЗУ ПОСЛЕ body.dark-theme { ... } */ /* Улучшенная видимость в темной теме */ body.dark-theme .nav-item { font-weight: 600; color: #e2e8f0; } body.dark-theme .nav-item:hover { color: #f8fafc; font-weight: 700; } body.dark-theme .nav-item.active { color: #ffffff; font-weight: 700; } body.dark-theme .module-header h1 { color: #f8fafc; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); } body.dark-theme .data-table th { color: #f1f5f9; font-weight: 700; background-color: #334155; } body.dark-theme .data-table td { color: #e2e8f0; font-weight: 500; } body.dark-theme .control-group label { color: #f1f5f9; font-weight: 600; } body.dark-theme .setting-row label { color: #f1f5f9; font-weight: 600; } body.dark-theme .settings-group h3 { color: #f8fafc; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } body.dark-theme .account-checkbox label strong { color: #f8fafc; font-weight: 700; } body.dark-theme .account-checkbox label span:not(.status-badge) { color: #cbd5e1; font-weight: 500; } body.dark-theme .stat-item { font-weight: 600; color: #e2e8f0; } body.dark-theme .pagination-btn { color: #e2e8f0; font-weight: 600; border-color: #475569; } body.dark-theme .btn { font-weight: 600; } body.dark-theme .editor-content { color: #f1f5f9; font-weight: 500; } body.dark-theme .chats-section h3, body.dark-theme .editor-section h3, body.dark-theme .image-section h3, body.dark-theme .accounts-selection h3 { color: #f8fafc; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } body.dark-theme .setting-item label { color: #f1f5f9; font-weight: 600; } body.dark-theme .setting-item small { color: #cbd5e1; font-weight: 500; } body.dark-theme input, body.dark-theme select, body.dark-theme textarea { color: #f1f5f9; font-weight: 500; background-color: #1e293b; border-color: #475569; } body.dark-theme input::placeholder, body.dark-theme textarea::placeholder { color: #94a3b8; font-weight: 500; } body.dark-theme .status-success { background-color: #065f46; color: #a7f3d0; font-weight: 600; } body.dark-theme .status-warning { background-color: #92400e; color: #fde68a; font-weight: 600; } body.dark-theme .status-danger { background-color: #991b1b; color: #fecaca; font-weight: 600; } body.dark-theme .status-default { background-color: #475569; color: #e2e8f0; font-weight: 600; } body.dark-theme .logo h2 { color: #f8fafc; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); } body.dark-theme .modal-title { color: #f8fafc; font-weight: 700; } body.dark-theme .modal-body { color: #e2e8f0; font-weight: 500; } /* Сброс стилей */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background-color: var(--bg-primary); color: var(--text-primary); transition: var(--transition); user-select: none; } /* Основной контейнер */ .app-container { display: flex; height: 100vh; overflow: hidden; } /* Боковая панель */ .sidebar { width: var(--sidebar-width); background-color: var(--bg-secondary); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; position: relative; } .sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); } .logo { display: flex; align-items: center; gap: 0.75rem; } .logo-icon { font-size: 2rem; } .logo h2 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); } .nav-menu { list-style: none; padding: 1rem 0; flex: 1; } .nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.5rem; cursor: pointer; transition: var(--transition); color: var(--text-secondary); font-weight: 500; } .nav-item:hover { background-color: var(--bg-tertiary); color: var(--text-primary); } .nav-item.active { background-color: var(--primary-color); color: white; border-right: 3px solid var(--primary-color); } .nav-icon { font-size: 1.2rem; width: 1.5rem; text-align: center; } /* Основной контент */ .main-content { flex: 1; background-color: var(--bg-primary); overflow-y: auto; } .module { display: none; padding: 2rem; height: 100%; } .module.active { display: block; } .module-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); } .module-header h1 { font-size: 2rem; font-weight: 700; color: var(--text-primary); } .header-actions { display: flex; gap: 0.75rem; } /* Кнопки */ .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; border: none; border-radius: var(--border-radius); font-weight: 500; font-size: 0.875rem; cursor: pointer; transition: var(--transition); text-decoration: none; white-space: nowrap; } .btn-primary { background-color: var(--primary-color); color: white; } .btn-primary:hover { background-color: #1d4ed8; } .btn-secondary { background-color: var(--secondary-color); color: white; } .btn-secondary:hover { background-color: #475569; } .btn-success { background-color: var(--success-color); color: white; } .btn-success:hover { background-color: #047857; } .btn-danger { background-color: var(--danger-color); color: white; } .btn-danger:hover { background-color: #b91c1c; } .btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; } /* Панель управления */ .control-panel { display: flex; align-items: center; gap: 2rem; margin-bottom: 1.5rem; padding: 1rem; background-color: var(--bg-secondary); border-radius: var(--border-radius); border: 1px solid var(--border-color); } .control-group { display: flex; align-items: center; gap: 0.5rem; } .control-group label { font-weight: 500; color: var(--text-secondary); white-space: nowrap; } .control-group input, .control-group select { padding: 0.375rem 0.75rem; border: 1px solid var(--border-color); border-radius: var(--border-radius); background-color: var(--bg-primary); color: var(--text-primary); font-size: 0.875rem; } .stats { display: flex; gap: 1.5rem; margin-left: auto; } .stat-item { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; } .stat-item:first-child { color: var(--info-color); } .stat-item:nth-child(2) { color: var(--success-color); } .stat-item:nth-child(3) { color: var(--danger-color); } /* Таблицы */ .table-container { background-color: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); } .data-table { width: 100%; border-collapse: collapse; } .data-table th { background-color: var(--bg-secondary); padding: 0.75rem; text-align: left; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); font-size: 0.875rem; white-space: nowrap; } .data-table th.sortable { cursor: pointer; transition: var(--transition); } .data-table th.sortable:hover { background-color: var(--bg-tertiary); } .data-table td { padding: 0.75rem; border-bottom: 1px solid var(--border-color); font-size: 0.875rem; color: var(--text-primary); } .data-table tbody tr:hover { background-color: var(--bg-secondary); } /* Пагинация */ .pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 1.5rem; padding: 1rem; } .pagination-btn { padding: 0.5rem 0.75rem; border: 1px solid var(--border-color); background-color: var(--bg-primary); color: var(--text-primary); border-radius: var(--border-radius); cursor: pointer; font-size: 0.875rem; transition: var(--transition); } .pagination-btn:hover:not(:disabled) { background-color: var(--bg-secondary); border-color: var(--border-hover); } .pagination-btn.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); } .pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; } .pagination-ellipsis { padding: 0.5rem 0.25rem; color: var(--text-muted); } /* Модальные окна */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal { background-color: var(--bg-primary); border-radius: var(--border-radius); box-shadow: var(--shadow-lg); max-width: 90vw; max-height: 90vh; overflow-y: auto; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--border-color); } .modal-title { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); } .modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-secondary); padding: 0.25rem; border-radius: var(--border-radius); transition: var(--transition); } .modal-close:hover { background-color: var(--bg-secondary); } .modal-body { padding: 1.5rem; } .modal-footer { display: flex; justify-content: flex-end; gap: 0.75rem; padding: 1.5rem; border-top: 1px solid var(--border-color); } /* Уведомления */ .notifications-container { position: fixed; top: 1rem; right: 1rem; z-index: 1100; display: flex; flex-direction: column; gap: 0.5rem; } .notification { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--border-radius); color: white; font-weight: 500; box-shadow: var(--shadow-md); animation: slideIn 0.3s ease; max-width: 400px; min-width: 250px; } .notification-text { flex: 1; word-wrap: break-word; } .notification-close { background: none; border: none; color: white; font-size: 1.2rem; font-weight: bold; cursor: pointer; padding: 0.25rem; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s ease; flex-shrink: 0; } .notification-close:hover { background-color: rgba(255, 255, 255, 0.2); } .notification-close:active { background-color: rgba(255, 255, 255, 0.3); transform: scale(0.95); } .notification.success { background-color: var(--success-color); } .notification.error { background-color: var(--danger-color); } .notification.warning { background-color: var(--warning-color); } .notification.info { background-color: var(--info-color); } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* Статусы аккаунтов */ .status-badge { padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; } .status-success { background-color: #d1fae5; color: #065f46; } .status-warning { background-color: #fef3c7; color: #92400e; } .status-danger { background-color: #fee2e2; color: #991b1b; } .status-default { background-color: var(--bg-tertiary); color: var(--text-secondary); } /* Модуль рассылки */ /* НАЙДИТЕ эти блоки (строки 664-751) и ЗАМЕНИТЕ: */ /* Модуль рассылки */ .mailing-container { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1400px; } /* НАЙДИТЕ блок .accounts-selection и ДОБАВЬТЕ перед ним: */ .accounts-selection-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem; } .accounts-selection-controls { display: flex; gap: 0.5rem; } .btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; border-radius: var(--border-radius); } /* Адаптивность для мобильных */ @media (max-width: 768px) { .accounts-selection-header { flex-direction: column; align-items: stretch; } .accounts-selection-controls { justify-content: center; } } /* ЗАМЕНИТЕ существующий блок на: */ .editor-section, .image-section, .chats-section, .settings-section, .accounts-selection { background-color: var(--bg-secondary); padding: 1.5rem; border-radius: var(--border-radius); border: 1px solid var(--border-color); display: flex; /* ← ДОБАВЛЕНО */ flex-direction: column; /* ← ДОБАВЛЕНО */ } /* ДОБАВЬТЕ новый блок: */ .editor-section > *:last-child, .image-section > *:last-child { flex: 1; } .editor-toolbar { display: flex; gap: 0.5rem; margin-top: 1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); } .editor-btn { padding: 0.5rem; border: 1px solid var(--border-color); background-color: var(--bg-primary); border-radius: 4px; cursor: pointer; transition: all 0.2s ease; min-width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; } .editor-btn:hover { background-color: var(--bg-tertiary); border-color: var(--primary-color); } .editor-content { min-height: 150px; max-height: 300px; overflow-y: auto; padding: 1rem; border: 1px solid var(--border-color); border-radius: var(--border-radius); background-color: var(--bg-primary); line-height: 1.5; font-family: inherit; } .editor-content:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1); } .editor-content[contenteditable]:empty:before { content: attr(placeholder); color: var(--text-muted); font-style: italic; } /* ЗАМЕНИТЕ существующий .image-upload-area на: */ .image-upload-area { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; /* ← ИЗМЕНЕНО: занимает всю высоту */ border: 2px dashed var(--border-color); border-radius: var(--border-radius); background-color: var(--bg-primary); cursor: pointer; transition: all 0.2s ease; text-align: center; padding: 1rem; margin-top: 1rem; } .image-upload-area:hover { border-color: var(--primary-color); background-color: var(--bg-tertiary); } .image-preview { position: relative; text-align: center; } .image-preview img { max-width: 100%; max-height: 200px; border-radius: var(--border-radius); box-shadow: var(--shadow-sm); } .image-preview .btn { position: absolute; top: 0.5rem; right: 0.5rem; border-radius: 50%; width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; } #chat-list { width: 100%; min-height: 150px; max-height: 300px; padding: 1rem; margin-top: 1rem; border: 1px solid var(--border-color); border-radius: var(--border-radius); background-color: var(--bg-primary); font-family: 'Courier New', monospace; font-size: 0.9rem; line-height: 1.4; resize: vertical; } .settings-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; } .setting-item { display: flex; flex-direction: column; gap: 0.5rem; } .setting-item label { font-weight: 500; color: var(--text-primary); } .setting-item input { padding: 0.5rem; border: 1px solid var(--border-color); border-radius: var(--border-radius); background-color: var(--bg-primary); } .setting-item label input[type="checkbox"] { margin-right: 0.5rem; transform: scale(1.2); cursor: pointer; } .setting-item label { display: flex; align-items: center; cursor: pointer; font-weight: 500; } .setting-item small { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-top: 0.25rem; } /* Отключенные поля */ .setting-item input:disabled { opacity: 0.5; cursor: not-allowed; } .accounts-checkboxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.5rem; max-height: 200px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; } .accounts-checkboxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.5rem; max-height: 200px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; .accounts-checkboxes::-webkit-scrollbar { display: none; } } .account-checkbox { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; background-color: var(--bg-primary); border-radius: var(--border-radius); border: 1px solid var(--border-color); } .account-checkbox label { display: flex; flex-direction: column; gap: 0.25rem; cursor: pointer; flex: 1; } .account-checkbox label strong { color: var(--text-primary); } .account-checkbox label span:not(.status-badge) { color: var(--text-secondary); font-size: 0.85rem; } .mailing-actions { grid-column: 1 / -1; display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; } /* Настройки */ .settings-container { max-width: 600px; } .settings-group { background-color: var(--bg-secondary); padding: 1.5rem; border-radius: var(--border-radius); border: 1px solid var(--border-color); margin-bottom: 1.5rem; } .settings-group h3 { margin-bottom: 1rem; color: var(--text-primary); font-weight: 600; } .setting-row, .info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); } .setting-row:last-child, .info-row:last-child { border-bottom: none; } .setting-row label { font-weight: 500; color: var(--text-secondary); } .setting-row select { padding: 0.375rem 0.75rem; border: 1px solid var(--border-color); border-radius: var(--border-radius); background-color: var(--bg-primary); color: var(--text-primary); } /* Анимации загрузки */ .loading { position: relative; pointer-events: none; } .loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid var(--border-color); border-top: 2px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; } .btn.loading { position: relative; color: transparent !important; } .btn.loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid transparent; border-top: 2px solid currentColor; border-radius: 50%; animation: spin 1s linear infinite; color: white; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Адаптивность */ @media (max-width: 1024px) { .mailing-container { grid-template-columns: 1fr; } .accounts-checkboxes { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } } @media (max-width: 768px) { .sidebar { width: 70px; } .sidebar .logo h2, .nav-item span:not(.nav-icon) { display: none; } .control-panel { flex-direction: column; align-items: stretch; gap: 1rem; } .stats { margin-left: 0; justify-content: center; } .header-actions { flex-direction: column; } .module-header { flex-direction: column; align-items: stretch; gap: 1rem; } .mailing-container { grid-template-columns: 1fr; } .accounts-checkboxes { grid-template-columns: 1fr; } .mailing-actions { flex-direction: column; align-items: stretch; } } /* ДОБАВИТЬ ПЕРЕД /* Скрытые элементы */ */ /* Дополнительные стили для темной темы - улучшение видимости текста */ body.dark-theme .module-header h1 { color: #f8fafc !important; font-weight: 800; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); } body.dark-theme .control-panel { background-color: #1e293b; border-color: #475569; } body.dark-theme .control-group label { color: #f1f5f9 !important; font-weight: 600; } body.dark-theme .control-group input, body.dark-theme .control-group select { background-color: #0f172a; border-color: #475569; color: #f1f5f9; } body.dark-theme .table-container { background-color: #0f172a; border-color: #475569; } body.dark-theme .data-table th { background-color: #1e293b !important; color: #f1f5f9 !important; font-weight: 700; border-color: #475569; } body.dark-theme .data-table td { color: #e2e8f0 !important; font-weight: 500; border-color: #334155; } body.dark-theme .data-table tbody tr:hover { background-color: #1e293b; } body.dark-theme .editor-section, body.dark-theme .image-section, body.dark-theme .chats-section, body.dark-theme .settings-section, body.dark-theme .accounts-selection { background-color: #1e293b; border-color: #475569; } body.dark-theme .editor-section h3, body.dark-theme .image-section h3, body.dark-theme .chats-section h3, body.dark-theme .settings-section h3, body.dark-theme .accounts-selection h3 { color: #f8fafc !important; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); } body.dark-theme .editor-btn { background-color: #0f172a; border-color: #475569; color: #e2e8f0; } body.dark-theme .editor-btn:hover { background-color: #334155; border-color: #2563eb; } body.dark-theme .editor-content { background-color: #0f172a !important; border-color: #475569; color: #f1f5f9 !important; font-weight: 500; } body.dark-theme .editor-content[contenteditable]:empty:before { color: #94a3b8 !important; } body.dark-theme .image-upload-area { background-color: #0f172a; border-color: #475569; color: #e2e8f0; } body.dark-theme .image-upload-area:hover { background-color: #1e293b; border-color: #2563eb; } body.dark-theme #chat-list { background-color: #0f172a !important; border-color: #475569; color: #f1f5f9 !important; font-weight: 500; } body.dark-theme #chat-list::placeholder { color: #94a3b8 !important; } body.dark-theme .settings-group { background-color: #1e293b; border-color: #475569; } body.dark-theme .settings-group h3 { color: #f8fafc !important; font-weight: 700; } body.dark-theme .setting-row, body.dark-theme .info-row { border-color: #334155; } body.dark-theme .setting-row label, body.dark-theme .info-row label { color: #f1f5f9 !important; font-weight: 600; } body.dark-theme .setting-row select, body.dark-theme .info-row select { background-color: #0f172a; border-color: #475569; color: #f1f5f9; } body.dark-theme .account-checkbox { background-color: #0f172a; border-color: #475569; } body.dark-theme .account-checkbox:hover { background-color: #1e293b; } body.dark-theme .account-checkbox input[type="checkbox"] { filter: brightness(1.5); } body.dark-theme .account-checkbox label strong { color: #f8fafc !important; font-weight: 700; } body.dark-theme .account-checkbox label span:not(.status-badge) { color: #cbd5e1 !important; font-weight: 500; } body.dark-theme .stat-item { color: #e2e8f0 !important; font-weight: 600; } body.dark-theme .stat-item:first-child { color: #60a5fa !important; } body.dark-theme .stat-item:nth-child(2) { color: #34d399 !important; } body.dark-theme .stat-item:nth-child(3) { color: #f87171 !important; } body.dark-theme .pagination-btn { background-color: #1e293b; border-color: #475569; color: #e2e8f0 !important; font-weight: 600; } body.dark-theme .pagination-btn:hover:not(:disabled) { background-color: #334155; border-color: #64748b; } body.dark-theme .pagination-btn.active { background-color: #2563eb; border-color: #2563eb; color: white !important; } body.dark-theme .pagination-ellipsis { color: #94a3b8 !important; } /* Улучшение модальных окон */ body.dark-theme .modal { background-color: #1e293b; border: 1px solid #475569; } body.dark-theme .modal-header { border-color: #334155; } body.dark-theme .modal-footer { border-color: #334155; } body.dark-theme .modal-close { color: #cbd5e1; } body.dark-theme .modal-close:hover { background-color: #334155; } /* Улучшение всех инпутов и селектов */ body.dark-theme input:not([type="checkbox"]):not([type="radio"]), body.dark-theme select, body.dark-theme textarea { background-color: #0f172a !important; border-color: #475569 !important; color: #f1f5f9 !important; font-weight: 500; } body.dark-theme input:focus, body.dark-theme select:focus, body.dark-theme textarea:focus { border-color: #2563eb !important; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important; } body.dark-theme input::placeholder, body.dark-theme textarea::placeholder { color: #94a3b8 !important; font-weight: 500; } /* Улучшение всех лейблов */ body.dark-theme label { color: #f1f5f9 !important; font-weight: 600; } /* Улучшение всех заголовков */ body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4, body.dark-theme h5, body.dark-theme h6 { color: #f8fafc !important; font-weight: 700; } /* Улучшение всех параграфов и спанов */ body.dark-theme p, body.dark-theme span:not(.status-badge) { color: #e2e8f0 !important; } /* Улучшение всех кнопок */ body.dark-theme .btn { font-weight: 600; border-width: 1px; } body.dark-theme .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger) { background-color: #334155; color: #f1f5f9; border-color: #475569; } body.dark-theme .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):hover { background-color: #475569; } /* Убираем стрелки у всех числовых полей input во всей программе */ input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0 !important; display: none !important; } /* Firefox */ input[type="number"] { -moz-appearance: textfield !important; } /* IE/Edge */ input[type="number"]::-ms-clear, input[type="number"]::-ms-reveal { display: none !important; width: 0 !important; height: 0 !important; } /* Дополнительная защита для всех браузеров */ input[type="number"] { appearance: textfield !important; -webkit-appearance: textfield !important; -moz-appearance: textfield !important; } /* Скрытые элементы */ .hidden { display: none !important; } /* ДОБАВЬТЕ В КОНЕЦ ФАЙЛА: */ /* Модальные окна */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); } .modal.show { display: flex; align-items: center; justify-content: center; animation: modalFadeIn 0.3s ease; } .modal-content { background-color: var(--bg-primary); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); width: 90%; max-width: 600px; max-height: 90vh; overflow: hidden; border: 1px solid var(--border-color); animation: modalSlideIn 0.3s ease; } .modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background-color: var(--bg-secondary); } .modal-header h3 { margin: 0; color: var(--text-primary); font-size: 1.25rem; } .modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-secondary); padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: background-color 0.15s ease; } .modal-close:hover { background-color: var(--bg-tertiary); color: var(--text-primary); } .modal-body { padding: 1.5rem; max-height: 60vh; overflow-y: auto; } .modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); display: flex; gap: 0.75rem; justify-content: flex-end; background-color: var(--bg-secondary); } .form-group { margin-bottom: 1rem; } .form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-primary); font-weight: 500; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 4px; background-color: var(--bg-primary); color: var(--text-primary); font-size: 0.9rem; transition: border-color 0.15s ease; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1); } .form-group textarea { resize: vertical; min-height: 120px; font-family: 'Consolas', 'Monaco', monospace; } .form-row { display: flex; gap: 1rem; align-items: end; } .form-col { flex: 1; } .form-group label input[type="checkbox"] { width: auto; margin-right: 0.5rem; } /* Анимации модального окна */ @keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes modalSlideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } /* Темная тема для модальных окон */ body.dark-theme .modal-content { background-color: #1e293b; } body.dark-theme .modal-header, body.dark-theme .modal-footer { background-color: #0f172a; border-color: #475569; } body.dark-theme .form-group input, body.dark-theme .form-group select, body.dark-theme .form-group textarea { background-color: #334155; border-color: #475569; color: #f1f5f9; } body.dark-theme .form-group input:focus, body.dark-theme .form-group select:focus, body.dark-theme .form-group textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1); } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }