* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

header h1 {
    color: #2c3e50;
    font-size: 28px;
}

.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.user-info span {
    color: #7f8c8d;
    font-weight: 500;
}

.user-info a {
    color: #3498db;
    text-decoration: none;
    padding: 8px 15px;
    border: 2px solid #3498db;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.user-info a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* Info Section */
.info-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.info-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.criteria-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.criterion {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

.input-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
}

#infoInput {
    width: 100%;
    height: 150px;
    padding: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

#infoInput:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#checkButton {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: block;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

#checkButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Loading Section */
#loadingSection {
    text-align: center;
    display: none;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 20px 0;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.loading-steps .step {
    background: white;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 14px;
    opacity: 0.6;
    transition: all 0.5s ease;
}

/* Result Section */
#resultSection {
    display: none;
}

/* Score Display */
.score-display {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
}

.score-display .score {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.score-display .score-label {
    font-size: 20px;
    opacity: 0.9;
}

.score-display .credibility-text {
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
}

.score-display .ai-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.progress-bar {
    height: 12px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #2ecc71;
    width: 0%;
    transition: width 1s ease-in-out;
    border-radius: 10px;
}

/* Expert Opinion */
.expert-opinion-section {
    margin: 30px 0;
}

.expert-opinion-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 22px;
}

.opinion-bubble {
    display: flex;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.opinion-avatar {
    font-size: 24px;
    flex-shrink: 0;
}

.opinion-text {
    flex: 1;
}

.opinion-text p {
    margin: 5px 0;
    line-height: 1.6;
}

/* Key Findings */
.key-findings-section {
    margin: 25px 0;
}

.key-findings-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 22px;
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.finding-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.finding-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Sources Section */
.sources-detailed-section {
    margin: 30px 0;
}

.sources-detailed-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 22px;
}

.sources-header-info {
    text-align: center;
    margin-bottom: 20px;
    color: #6c757d;
    font-style: italic;
}

#sourcesList {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Source Item with AI */
.source-item-with-ai {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.source-item-with-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.source-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.source-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.source-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.source-domain {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
}

.source-content {
    margin-bottom: 15px;
}

.source-snippet {
    line-height: 1.5;
    color: #495057;
    margin-bottom: 10px;
    font-size: 14px;
}

.source-url {
    margin-bottom: 15px;
}

.source-url a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
}

.source-url a:hover {
    text-decoration: underline;
}

/* Analysis Comparison */
.analysis-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.system-analysis, .ai-analysis {
    padding: 15px;
}

.system-analysis {
    border-right: 2px solid #e9ecef;
}

.system-analysis h4, .ai-analysis h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
}

/* Score Badges */
.score-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 10px;
}

.score-badge.high-score {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.score-badge.medium-score {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.score-badge.low-score {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.score-value {
    font-size: 18px;
    font-weight: bold;
}

.score-label {
    font-size: 11px;
    opacity: 0.8;
}

/* AI Score Section */
.ai-score-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.ai-confidence {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ai-confidence.high {
    background: #d4edda;
    color: #155724;
}

.ai-confidence.medium {
    background: #fff3cd;
    color: #856404;
}

.ai-confidence.low {
    background: #f8d7da;
    color: #721c24;
}

/* AI Explanation */
.ai-explanation {
    font-size: 14px;
    line-height: 1.5;
}

.ai-explanation .explanation-content {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.ai-explanation .explanation-content p {
    margin: 8px 0;
    line-height: 1.5;
}

.fallback-note {
    margin-top: 8px;
    padding: 6px 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-size: 12px;
}

/* Criteria List */
.criteria-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.criterion {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #495057;
}

.no-criteria {
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

/* Source Breakdown */
.source-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
}

.breakdown-item span:first-child {
    font-weight: 600;
    color: #495057;
}

.breakdown-item span:last-child {
    color: #6c757d;
}

/* Recommendations */
.ai-recommendations {
    margin: 30px 0;
}

.ai-recommendations h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 22px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.rec-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Error Sections */
.fallback-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
}

.fallback-warning h3 {
    margin-bottom: 10px;
    color: #856404;
}

.ai-errors-section {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #721c24;
}

.ai-errors-section h3 {
    margin-bottom: 10px;
    color: #721c24;
}

.errors-list {
    margin-top: 10px;
}

.error-item {
    background: #f8d7da;
    color: #721c24;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 14px;
    border-left: 3px solid #e74c3c;
}

/* No Sources Message */
.no-sources {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Debug Info */
.debug-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 12px;
    display: none;
}

.debug-info pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-family: 'Courier New', monospace;
}

/* Analysis Metrics */
.analysis-metrics {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.analysis-metrics h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.metric {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.metric-label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

/* Auth Forms */
.auth-form {
    max-width: 400px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.auth-form h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* History Table */
.history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.history-table th,
.history-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.history-table th {
    background: #3498db;
    color: white;
    font-weight: 600;
}

.history-table tr:hover {
    background: #f8f9fa;
}

.history-table .score-badge {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

.history-table .delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-table .delete-btn:hover {
    background: #c0392b;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .criteria-list {
        grid-template-columns: 1fr;
    }
    
    .analysis-comparison {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .system-analysis {
        border-right: none;
        border-bottom: 2px solid #e9ecef;
        padding-bottom: 20px;
    }
    
    .ai-score-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .source-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .source-meta {
        align-items: flex-start;
    }
    
    .source-breakdown {
        grid-template-columns: 1fr;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .findings-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .loading-steps {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .score-display .score {
        font-size: 48px;
    }
    
    .opinion-bubble {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .history-table {
        font-size: 14px;
    }
    
    .history-table th,
    .history-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .score-display {
        padding: 20px;
    }
    
    .score-display .score {
        font-size: 36px;
    }
    
    .analysis-comparison {
        padding: 15px;
    }
    
    .source-item-with-ai {
        padding: 15px;
    }
}
/* Стили для объединенного отображения источников */
.source-item-with-ai {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.source-scores-comparison {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.score-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 80px;
}

.score-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.score-value {
    font-size: 18px;
    font-weight: bold;
}

.system-score, .ai-score {
    font-weight: 800;
}

.ai-analysis-section, .system-analysis-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.system-analysis-section {
    border-left-color: #28a745;
}

.ai-explanation {
    line-height: 1.5;
    color: #495057;
    font-style: italic;
}

.expert-conclusion-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.expert-conclusion-content {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.key-findings {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.key-findings ul {
    margin: 0;
    padding-left: 20px;
}

.key-findings li {
    margin-bottom: 8px;
}

.sources-comparison-info {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-style: italic;
    color: #1565c0;
}

/* Добавьте эти стили в существующий файл style.css */

/* Экспертное заключение */
.expert-conclusion {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.query-analysis {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.expert-explanation {
    background: #e8f4fd;
    border-left: 4px solid #17a2b8;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.expert-explanation .content-stats {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #dee2e6;
}

/* Анализ содержания источников */
.sources-content-analysis {
    margin-top: 20px;
}

.source-analysis-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.source-analysis-item h4 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.source-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.domain {
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
}

.content-score {
    font-weight: bold;
    color: #2c3e50;
}

.content-analysis {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.source-comparison {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.source-comparison ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.source-comparison li {
    padding: 5px 0;
    border-bottom: 1px dashed #ffc107;
}

.source-comparison li:last-child {
    border-bottom: none;
}

/* Рекомендации */
.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 4px;
    color: #155724;
}

/* Полный анализ */
.full-analysis {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.analysis-text {
    line-height: 1.6;
}

.analysis-text h2, 
.analysis-text h3, 
.analysis-text h4 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
}

.analysis-text p {
    margin-bottom: 15px;
}

.analysis-text ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.analysis-text li {
    margin-bottom: 8px;
}

/* Системный анализ источников */
.sources-list .source-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.sources-list .source-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.source-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.visit-btn {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.visit-btn:hover {
    background: #2980b9;
}

.criteria {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.criterion {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    border: 1px solid #dee2e6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .source-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .source-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .full-analysis {
        max-height: 300px;
    }
}

/* Добавьте в существующий файл */

.warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
}

.warning-box p {
    margin: 5px 0;
}

.system-status {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed #dee2e6;
}

.status-item:last-child {
    border-bottom: none;
}

.status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* Стили для анализа контента */
.content-analysis-preview {
    background-color: #e8f4fd;
    border-left: 4px solid #17a2b8;
    padding: 15px;
    margin: 10px 0;
    border-radius: 0 8px 8px 0;
}

.source-stats {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.stat-item {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-size: 14px;
}

.ai-mode-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
    vertical-align: middle;
}

.fallback-mode-badge {
    background: #f39c12;
}
/* Добавьте в style.css */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pagination-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-btn:hover:not(.disabled) {
    background: #2980b9;
    transform: translateY(-2px);
}

.pagination-btn.disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.page-info {
    font-weight: 600;
    color: #2c3e50;
}

.source-item {
    border-left: 4px solid #e74c3c;
    padding-left: 15px;
    margin: 15px 0;
}

.source-item:nth-child(5n+1) { border-color: #e74c3c; }
.source-item:nth-child(5n+2) { border-color: #3498db; }
.source-item:nth-child(5n+3) { border-color: #2ecc71; }
.source-item:nth-child(5n+4) { border-color: #f39c12; }
.source-item:nth-child(5n+5) { border-color: #9b59b6; }