/* Общие стили для AI примеров */

.ai-example-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.ai-example-title {
    color: #1a365d;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #3182ce;
    padding-bottom: 10px;
}

.ai-example-content {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.ai-example {
    line-height: 1.6;
}

.ai-example h3 {
    color: #2d3748;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-example h4 {
    color: #4a5568;
    font-size: 1.2rem;
    margin: 15px 0 10px 0;
}

.ai-example h5 {
    color: #2d3748;
    font-size: 1.1rem;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

/* Демонстрационные шаги */
.demo-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-step {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #3182ce;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2d3748;
}

.step-header i {
    color: #3182ce;
    font-size: 1.2rem;
}

.step-content {
    margin-left: 32px;
}

/* Метрики и статистика */
.ai-metric,
.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a365d;
}

.metric-label {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 5px;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* Элементы с иконками */
.icon-item,
.ai-processing .processing-item,
.insight-item,
.learning-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin: 8px 0;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #48bb78;
}

.icon-item i,
.ai-processing .processing-item i,
.insight-item i,
.learning-item i {
    color: #48bb78;
    font-size: 1.1rem;
}

.icon-item.text-green i {
    color: #48bb78;
}

.icon-item.text-red i {
    color: #e53e3e;
}

/* Поиск и ввод */
.search-input input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f7fafc;
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.ai-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.ai-search-btn:hover {
    transform: translateY(-2px);
}

/* Сканирование платформ */
.platform-scan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.platform {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
    font-weight: 500;
}

.status.found {
    color: #48bb78;
    font-weight: 600;
}

/* Сравнение */
.comparison-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.comparison-side {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.comparison-side h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.text-red {
    color: #e53e3e;
}

.text-green {
    color: #48bb78;
}

/* Карточки тендеров */
.tender-card {
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
}

.tender-card.found {
    background: #f0fff4;
    border-left-color: #48bb78;
}

.tender-card.missed {
    background: #fef5e7;
    border-left-color: #ed8936;
}

.tender-card strong {
    display: block;
    margin-bottom: 5px;
    color: #2d3748;
}

.tender-card .reason {
    font-size: 0.9rem;
    color: #718096;
}

/* Статистика */
.stats {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #edf2f7;
    border-radius: 6px;
    font-weight: 600;
}

/* Риски */
.risk-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #e2e8f0;
}

.risk-item.high {
    border-left-color: #e53e3e;
    background: #fed7d7;
}

.risk-item.medium {
    border-left-color: #ed8936;
    background: #fef5e7;
}

.risk-item.low {
    border-left-color: #3182ce;
    background: #ebf8ff;
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.risk-text {
    margin: 10px 0;
    color: #2d3748;
}

.ai-comment {
    font-style: italic;
    color: #718096;
    font-size: 0.9rem;
    background: #f7fafc;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
}

.page-ref {
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #4a5568;
}

/* Рекомендации */
.ai-recommendation,
.ai-recommendation-exec {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.recommendation-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

.recommendation-decision.go {
    font-size: 1.3rem;
    font-weight: bold;
    color: #48bb78;
    background: white;
    padding: 10px 20px;
    border-radius: 6px;
    display: inline-block;
    margin: 10px 0;
}

/* Карточки метрик */
.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.metric-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.metric-card.positive {
    border-top: 4px solid #48bb78;
}

.metric-card.negative {
    border-top: 4px solid #e53e3e;
}

.metric-card.neutral {
    border-top: 4px solid #718096;
}

/* Факторы решения */
.factor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
}

.factor.positive {
    background: #f0fff4;
    color: #22543d;
}

.factor.negative {
    background: #fed7d7;
    color: #742a2a;
}

.factor i {
    font-size: 1.1rem;
}

.factor.positive i {
    color: #48bb78;
}

.factor.negative i {
    color: #e53e3e;
}

/* Шаги выполнения */
.next-steps {
    margin-top: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin: 8px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step-number {
    background: #3182ce;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-deadline {
    margin-left: auto;
    background: #edf2f7;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #4a5568;
}

/* Форматы платформ */
.platform-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.platform-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.platform-card h5 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1rem;
}

.platform-card pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    overflow-x: auto;
    margin: 0;
}

/* AI обработка */
.ai-processing-arrow {
    text-align: center;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #3182ce;
    font-weight: 600;
}

.ai-processing-arrow i {
    font-size: 1.5rem;
}

/* JSON выход */
.json-output {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.json-output pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 20px;
    margin: 0;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* Преимущества */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #48bb78;
}

.benefit-item i {
    color: #48bb78;
    font-size: 1.2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .comparison-demo {
        grid-template-columns: 1fr;
    }
    
    .platform-data {
        grid-template-columns: 1fr;
    }
    
    .key-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefit-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-example-container {
        padding: 10px;
    }
    
    .step-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .step-deadline {
        margin-left: 0;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-example {
    animation: fadeInUp 0.6s ease-out;
}

/* Пульсация для активных элементов */
.analysis-stage.active i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Градиенты для специальных элементов */
.processing-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    margin: 20px 0;
}

.processing-status i {
    color: white;
    animation: pulse 2s infinite;
}

/* Архивный пример */
.archive-demo {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.search-interface {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.ai-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.ai-search-btn:hover {
    transform: translateY(-2px);
}

.ai-processing {
    margin: 20px 0;
}

.processing-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.processing-status i {
    color: white;
    animation: pulse 2s infinite;
}

.search-results {
    margin: 20px 0;
}

.archive-insight {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2d3748;
}

.insight-header i {
    color: #3182ce;
}

.insight-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.criteria-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
}

.criteria-name {
    min-width: 120px;
    font-weight: 500;
}

.criteria-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.criteria-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.criteria-value {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: #2d3748;
}

.historical-data {
    margin: 20px 0;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.data-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 5px;
}

.data-label {
    font-size: 0.9rem;
    color: #718096;
}

.success-patterns {
    margin: 20px 0;
}

.archive-stats {
    margin: 20px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 2rem;
    color: #3182ce;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
}

/* Дополнительные стили для примеров */

/* Документ тендера */
.tender-document {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.document-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.document-header i {
    color: #3182ce;
    font-size: 1.5rem;
}

.doc-pages {
    color: #718096;
    font-size: 0.9rem;
}

/* Анализ рисков */
.ai-analysis-process {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.analysis-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #718096;
}

.analysis-stage.active {
    color: #3182ce;
}

.analysis-stage i {
    font-size: 1.5rem;
}

.analysis-stage.active i {
    animation: pulse 2s infinite;
}

/* Персонализированная лента */
.personalized-feed {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.user-profile {
    margin-bottom: 20px;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.ai-recommendations {
    margin: 20px 0;
}

.recommendations {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #e2e8f0;
}

.recommendation-item.hot {
    border-left-color: #e53e3e;
}

.recommendation-item.medium {
    border-left-color: #ed8936;
}

.recommendation-item.low {
    border-left-color: #48bb78;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rec-score {
    text-align: center;
}

.score-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a365d;
}

.score-label {
    font-size: 0.8rem;
    color: #718096;
}

.rec-priority {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.rec-priority.hot {
    background: #fed7d7;
    color: #742a2a;
}

.rec-priority.medium {
    background: #fef5e7;
    color: #744210;
}

.rec-priority.low {
    background: #f0fff4;
    color: #22543d;
}

.rec-content {
    margin-top: 10px;
}

.rec-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #4a5568;
}

.ai-reason {
    background: #f7fafc;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-style: italic;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-reason i {
    color: #3182ce;
}

/* Статистика вовлеченности */
.engagement-stats {
    margin: 20px 0;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
}

/* Форматы данных */
.format-demo {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.source-formats {
    margin-bottom: 20px;
}

.platform-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.platform-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.platform-card h5 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1rem;
}

.platform-card pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    overflow-x: auto;
    margin: 0;
}

.ai-processing-arrow {
    text-align: center;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #3182ce;
    font-weight: 600;
}

.ai-processing-arrow i {
    font-size: 1.5rem;
}

.unified-format {
    margin: 20px 0;
}

.json-output {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.json-output pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 20px;
    margin: 0;
    font-size: 0.9rem;
    overflow-x: auto;
}

.integration-benefits {
    margin: 20px 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #48bb78;
}

.benefit-item i {
    color: #48bb78;
    font-size: 1.2rem;
}

/* Документы */
.issues-found {
    margin: 20px 0;
}

.checklist {
    margin: 20px 0;
}

/* Решения */
.decision-factors {
    margin: 20px 0;
}

/* Контракты */
.task-timeline {
    margin: 20px 0;
}

.contract-analysis {
    margin: 20px 0;
}

.timeline {
    margin: 20px 0;
}

.success-metrics {
    margin: 20px 0;
}

/* Конкуренты */
.competitors-list {
    margin: 20px 0;
}

/* Контракты - ContractExample */
.contract-workflow {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.victory-notification {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.victory-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.victory-header i {
    font-size: 1.5rem;
}

.victory-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.victory-details strong {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.victory-details span {
    opacity: 0.9;
    font-size: 0.95rem;
}

.ai-contract-assistant {
    margin: 20px 0;
}

.assistant-tasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #e2e8f0;
}

.task-item.completed {
    border-left-color: #48bb78;
}

.task-item.completed i {
    color: #48bb78;
}

.task-item.in-progress {
    border-left-color: #3182ce;
}

.task-item.in-progress i {
    color: #3182ce;
    animation: pulse 2s infinite;
}

.task-item.pending {
    border-left-color: #e2e8f0;
    opacity: 0.7;
}

.task-time {
    margin-left: auto;
    font-size: 0.85rem;
    color: #718096;
}

.contract-analysis {
    margin: 20px 0;
}

.analysis-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 15px 0;
}

.analysis-item {
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
}

.analysis-item.issue {
    background: #fed7d7;
    border-left-color: #e53e3e;
}

.analysis-item.success {
    background: #c6f6d5;
    border-left-color: #48bb78;
}

.analysis-item.warning {
    background: #fef5e7;
    border-left-color: #ed8936;
}

.issue-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.issue-header .section {
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.8;
}

.issue-description {
    margin-bottom: 10px;
    line-height: 1.5;
}

.ai-suggestion {
    background: rgba(255,255,255,0.7);
    padding: 10px;
    border-radius: 6px;
    font-style: italic;
    margin-top: 10px;
}

.timeline-tracker {
    margin: 20px 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 15px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    width: 2px;
    height: 30px;
    background: #e2e8f0;
    transform: translateY(-50%);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item.completed {
    border-left: 4px solid #48bb78;
}

.timeline-item.current {
    border-left: 4px solid #3182ce;
    background: #ebf8ff;
}

.timeline-item.pending {
    border-left: 4px solid #e2e8f0;
    opacity: 0.7;
}

.timeline-date {
    font-weight: 600;
    color: #2d3748;
    min-width: 80px;
}

.timeline-content {
    flex: 1;
}

.timeline-content strong {
    display: block;
    margin-bottom: 5px;
    color: #2d3748;
}

.timeline-content span {
    font-size: 0.9rem;
    color: #718096;
}

.success-metrics {
    margin: 20px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid #48bb78;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.4;
}

.metric-change {
    font-size: 0.85rem;
    color: #48bb78;
    font-weight: 600;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-results {
        gap: 10px;
    }
}

/* Стили для анализа конкурентов */
.competitor-analysis {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tender-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.tender-header h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.tender-info {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.competitors-list {
    margin-bottom: 25px;
}

.competitors-list h5 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.competitor-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

.competitor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.competitor-card.high {
    border-left-color: #e53e3e;
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
}

.competitor-card.medium {
    border-left-color: #d69e2e;
    background: linear-gradient(135deg, #fef5e7 0%, #fbd38d 100%);
}

.competitor-card.low {
    border-left-color: #38a169;
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
}

.competitor-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.company-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.threat-level {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.threat-level.high {
    background: #e53e3e;
    color: white;
}

.threat-level.medium {
    background: #d69e2e;
    color: white;
}

.threat-level.low {
    background: #38a169;
    color: white;
}

.competitor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat .label {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 4px;
    font-weight: 500;
}

.stat .value {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.price-prediction {
    margin: 25px 0;
}

.price-prediction h5 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.price-chart {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
}

.price-range {
    margin-top: 15px;
}

.price-bar {
    display: flex;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.price-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.price-segment.safe {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
}

.price-segment.optimal {
    background: linear-gradient(135deg, #3182ce 0%, #4299e1 100%);
}

.price-segment.risky {
    background: linear-gradient(135deg, #d69e2e 0%, #ed8936 100%);
}

.price-segment.unsafe {
    background: linear-gradient(135deg, #e53e3e 0%, #f56565 100%);
}

.price-segment span {
    font-size: 0.7rem;
    line-height: 1.2;
}

.price-segment label {
    font-size: 0.6rem;
    opacity: 0.9;
    margin-top: 2px;
}

.competition-strategy {
    margin-top: 25px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
}

.competition-strategy h5 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.strategy-recommendations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strategy-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.strategy-item i {
    color: #3182ce;
    font-size: 1rem;
}

.strategy-item span {
    color: #2d3748;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .competitor-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .tender-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-bar {
        flex-direction: column;
        height: auto;
    }
    
    .price-segment {
        height: 30px;
    }
    
    .strategy-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Стили для проверки документов */
.document-check {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.upload-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 500;
}

.file-upload i {
    color: #e53e3e;
    font-size: 1.2rem;
}

.ai-scanning {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a5568;
    font-style: italic;
}

.ai-scanning i {
    color: #3182ce;
    font-size: 1rem;
}

.loading-dots {
    display: inline-block;
    width: 20px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.loading-dots::after {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 4px;
    background: #3182ce;
    border-radius: 2px;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -20px; }
    100% { left: 100%; }
}

.check-results {
    margin-top: 20px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.error-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e53e3e;
    font-weight: 600;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge.warning {
    background: #fef5e7;
    color: #d69e2e;
}

.issues-list {
    margin-bottom: 25px;
}

.issue-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.issue-item.critical {
    border-left-color: #e53e3e;
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
}

.issue-item.warning {
    border-left-color: #d69e2e;
    background: linear-gradient(135deg, #fef5e7 0%, #fbd38d 100%);
}

.issue-item.recommendation {
    border-left-color: #3182ce;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
}

.issue-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.issue-header i {
    font-size: 1.1rem;
}

.issue-item.critical .issue-header i {
    color: #e53e3e;
}

.issue-item.warning .issue-header i {
    color: #d69e2e;
}

.issue-item.recommendation .issue-header i {
    color: #3182ce;
}

.issue-type {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.issue-location {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.issue-description {
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
}

.issue-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-size: 0.9rem;
    font-style: italic;
}

.issue-action i {
    color: #3182ce;
    font-size: 0.8rem;
}

.check-summary {
    margin: 25px 0;
}

.check-summary h5 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.summary-item.success {
    background: #f0fff4;
    color: #38a169;
}

.summary-item.error {
    background: #fed7d7;
    color: #e53e3e;
}

.summary-item i {
    font-size: 1rem;
}

.improvement-potential {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.improvement-potential h5 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.score-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.current-score,
.potential-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.score-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 5px;
}

.score-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3748;
}

.score-improvement {
    color: #38a169;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 2px;
}

.improvement-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.step-number {
    width: 30px;
    height: 30px;
    background: #3182ce;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-title {
    color: #2d3748;
    font-weight: 500;
}

.step-points {
    color: #38a169;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .score-display {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}