/* Тема в стиле ЛизаАлерт с шрифтом Roboto Slab */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500;700&display=swap');

:root {
    /* Цвета ЛизаАлерт */
    --bg: #f5f5f5;
    --panel: #ffffff;
    --accent: #ff6b00;
    --text: #333333;
    --border: #e0e0e0;
    --success: #4caf50;
    --warning: #ffc107;
    
    /* Шрифт Roboto Slab */
    --font-family: 'Roboto Slab', serif;
    
    /* Размеры */
    --font-size-base: 1em;
    --button-padding: 14px;
    --button-radius: 8px;
    --sidebar-width: 340px;
}

/* Текст на тёмном фоне */
.sidebar,
.map-overlay,
.legend,
.author-overlay,
.task-item,
.res-card,
.chat-area,
.modal-body,
.preview-section,
.published-item,
.form-group select,
.form-group input,
.chat-input,
#jsonPreview,
.map-info-item,
.dialog-row input,
.section-header.archive,
.archived-item {
    color: #ffffff !important;
}

/* Заголовки на тёмном фоне */
.sidebar h2,
.sidebar h3,
.map-overlay h3,
.task-info h4,
.res-name,
.modal-body h2,
.preview-section h3,
.published-item-title,
.map-info-value {
    color: #ff6b00 !important;
}

/* Вторичный текст на тёмном фоне */
.task-info p,
.res-desc,
.msg strong,
.published-item-id,
.map-info-label,
.dialog-row input::placeholder,
.form-group label {
    color: #cccccc !important;
}

/* Дополнительные стили для улучшения читаемости */
body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--text);
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--accent);
}

.btn {
    font-family: var(--font-family);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    background: #ff8533;
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

.section, .preview-section, .published-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

input, select, textarea {
    font-family: var(--font-family);
    border: 2px solid var(--border);
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.sidebar {
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.timer-display {
    font-family: 'Roboto Slab', monospace;
    font-weight: 700;
}

.modal-body {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8533;
}