/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* Боковая панель */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-header i {
    margin-right: 10px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #fff;
}

.nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Основной контент */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.user-info i {
    font-size: 1.5rem;
    color: #667eea;
}

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Страницы */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Дашборд */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-content p {
    color: #666;
    font-size: 0.9rem;
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
}

.widget-content {
    max-height: 300px;
    overflow-y: auto;
}

/* DeepL Status Widget */
.deepl-status-card {
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #28a745;
}

.deepl-status-card.error {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.deepl-status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.deepl-status-text {
    font-weight: 600;
    color: #333;
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.usage-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.usage-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
}

.deepl-error-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.deepl-error-info a {
    color: #007bff;
    text-decoration: none;
}

.deepl-error-info a:hover {
    text-decoration: underline;
}

/* Кнопки */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Заголовки страниц */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 1.8rem;
    color: #333;
}

/* Сайты */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.site-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.site-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.site-card p {
    color: #666;
    margin-bottom: 15px;
}

.site-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.site-status.active {
    background: #d4edda;
    color: #155724;
}

.site-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Посты */
.posts-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.posts-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

.posts-list {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.post-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-item:last-child {
    border-bottom: none;
}

.post-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.post-info p {
    color: #666;
    font-size: 0.9rem;
}

.post-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-status.pending {
    background: #fff3cd;
    color: #856404;
}

.post-status.published {
    background: #d4edda;
    color: #155724;
}

.post-status.failed {
    background: #f8d7da;
    color: #721c24;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-content {
    background-color: white;
    margin: 20px auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Массовая загрузка */
.bulk-upload {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.upload-area {
    text-align: center;
    padding: 40px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
}

.upload-area h3 {
    margin-bottom: 10px;
    color: #333;
}

.upload-area p {
    color: #666;
    margin-bottom: 20px;
}

.upload-area input[type="file"] {
    margin-bottom: 20px;
}

.bulk-results {
    margin-top: 20px;
}

/* Логи */
.logs-list {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
}

.log-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-item:last-child {
    border-bottom: none;
}

.log-message {
    flex: 1;
}

.log-time {
    color: #666;
    font-size: 0.8rem;
}

/* Настройки */
.settings-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

/* Парсер статей */
.parser-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.parser-input {
    margin-bottom: 20px;
}

.parser-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.parser-input input[type="url"],
.parser-input textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    resize: vertical;
}

.parser-input textarea {
    min-height: 120px;
    font-family: 'Courier New', monospace;
}

.parser-options {
    margin-bottom: 15px;
}

.parser-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.parser-options input[type="checkbox"] {
    margin: 0;
}

.parser-result {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.parser-progress {
    margin-bottom: 20px;
}

.parser-progress h3 {
    margin-bottom: 15px;
    color: #333;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
}

#progress-text {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.parsed-articles-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

.parsed-article-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.parsed-article-item:last-child {
    margin-bottom: 0;
}

.parsed-article-item.success {
    border-left: 4px solid #4CAF50;
    background: #f1f8e9;
}

.parsed-article-item.error {
    border-left: 4px solid #f44336;
    background: #ffebee;
}

.parsed-article-item.processing {
    border-left: 4px solid #2196F3;
    background: #e3f2fd;
}

.article-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.article-status {
    font-size: 12px;
    color: #666;
}

.article-url {
    font-size: 11px;
    color: #999;
    word-break: break-all;
    margin-top: 5px;
}

.parsed-content {
    margin-bottom: 20px;
}

.parsed-content h3 {
    color: #333;
    margin-bottom: 10px;
}

.excerpt {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-style: italic;
    color: #666;
}

.content {
    line-height: 1.6;
    color: #333;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.content p {
    margin-bottom: 15px;
}

.content ul, .content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 15px;
    margin: 15px 0;
    font-style: italic;
    color: #666;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.parser-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Адаптивность */
@media (max-width: 768px) {
    .app {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-filters {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Стили для contenteditable редактора */
.content-editor {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-y: auto;
    resize: vertical;
}

.content-editor:focus {
    outline: none;
    border-color: #667eea !important;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.content-editor h1,
.content-editor h2,
.content-editor h3,
.content-editor h4,
.content-editor h5,
.content-editor h6 {
    margin: 1em 0 0.5em 0;
    font-weight: 600;
    line-height: 1.2;
}

.content-editor h1 { font-size: 1.8em; }
.content-editor h2 { font-size: 1.5em; }
.content-editor h3 { font-size: 1.3em; }
.content-editor h4 { font-size: 1.1em; }

.content-editor p {
    margin: 0.5em 0;
}

.content-editor img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-editor table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    border: 1px solid #ddd;
}

.content-editor th,
.content-editor td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.content-editor th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.content-editor ul,
.content-editor ol {
    margin: 0.5em 0;
    padding-left: 2em;
}

.content-editor blockquote {
    margin: 1em 0;
    padding: 0.5em 1em;
    border-left: 4px solid #667eea;
    background-color: #f8f9fa;
    font-style: italic;
}

/* Стили для страницы расписания */
.schedule-container {
    padding: 20px;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.schedule-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.schedule-actions {
    display: flex;
    gap: 15px;
}

.schedule-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.schedule-sites {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.schedule-sites h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.schedule-site-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.schedule-site-item:last-child {
    margin-bottom: 0;
}

.schedule-site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkmark {
    display: none;
}

.schedule-site-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.schedule-site-url {
    color: #666;
    font-size: 0.9rem;
}

.schedule-site-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.schedule-setting {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.schedule-setting label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.schedule-setting select,
.schedule-setting input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.schedule-site-status {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.schedule-site-status span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.schedule-results {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.schedule-results h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.schedule-result-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-result-item.success {
    border-left: 4px solid #4CAF50;
    background: #f1f8e9;
}

.schedule-result-item.error {
    border-left: 4px solid #f44336;
    background: #ffebee;
}

.schedule-result-item.no-articles {
    border-left: 4px solid #ff9800;
    background: #fff3e0;
}

.schedule-result-info {
    flex: 1;
}

.schedule-result-site {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.schedule-result-message {
    color: #666;
    font-size: 0.9rem;
}

.schedule-result-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.schedule-result-status.success {
    background: #d4edda;
    color: #155724;
}

.schedule-result-status.error {
    background: #f8d7da;
    color: #721c24;
}

.schedule-result-status.no-articles {
    background: #fff3cd;
    color: #856404;
}

.schedule-summary {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.schedule-summary h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

/* Стили для страницы переводов */
.translations-container {
    padding: 20px;
}

.translations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.translations-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.translations-actions {
    display: flex;
    gap: 15px;
}

.translations-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.translations-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.translations-filters select,
.translations-filters input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.translations-filters select {
    min-width: 200px;
}

.translations-filters input {
    flex: 1;
    max-width: 300px;
}

.articles-list {
    display: grid;
    gap: 15px;
}

.article-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.article-title-en {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.article-status {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-translated {
    background-color: #d4edda;
    color: #155724;
}

.status-untranslated {
    background-color: #f8d7da;
    color: #721c24;
}

.status-published {
    background-color: #d1ecf1;
    color: #0c5460;
}

.article-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.article-actions .btn {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
    animation: progress-animation 2s infinite;
}

@keyframes progress-animation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Стили для страницы настроек */
.settings-container {
    padding: 20px;
}

.settings-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.settings-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.settings-header p {
    color: #666;
    font-size: 1rem;
}

.settings-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.settings-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-info {
    margin-bottom: 15px;
}

.setting-info label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.setting-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.setting-info a {
    color: #667eea;
    text-decoration: none;
}

.setting-info a:hover {
    text-decoration: underline;
}

.setting-control {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.setting-control input {
    flex: 1;
    max-width: 400px;
}

.setting-status {
    min-height: 20px;
    font-size: 0.9rem;
}

.setting-status.success {
    color: #28a745;
}

.setting-status.error {
    color: #dc3545;
}

.setting-status.info {
    color: #17a2b8;
}

.system-info {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #333;
}

.info-value {
    color: #666;
    font-family: 'Courier New', monospace;
}

/* Адаптивность для страницы переводов */
@media (max-width: 768px) {
    .translations-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .translations-actions {
        flex-direction: column;
    }
    
    .translations-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .translations-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .article-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-actions {
        flex-wrap: wrap;
    }
    
    .setting-control {
        flex-direction: column;
        align-items: stretch;
    }
    
    .setting-control input {
        max-width: none;
    }
}
