body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 20px;
    color: #1c1e21;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.search-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

input[type="text"] {
    width: 400px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
}

input[type="text"]:focus {
    border-color: #0065dd;
}

button {
    padding: 13px 25px;
    background: #0065dd;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Блок ЦЕНЫ */
.price-badge {
    background: #fffbe6;
    border: 2px solid #ffe58f;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}

.price-label {
    font-size: 14px;
    color: #856404;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.price-value {
    font-size: 42px;
    color: #b58105;
    font-weight: 800;
    margin: 5px 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

h3 {
    margin-top: 0;
    color: #0065dd;
    font-size: 18px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.label {
    font-weight: bold;
    color: #65676b;
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 15px;
    display: block;
}

.val {
    font-size: 15px;
    margin-top: 4px;
    line-height: 1.5;
}

.status-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e7f3ff;
    color: #1877f2;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
}

.file-list {
    margin-top: 30px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #0065dd;
    transition: 0.2s;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0065dd;
}

.btn-parse {
    background: #0065dd;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-tag.inactive {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

/* Кнопка ИИ */
.btn-ai {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn-ai:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(167, 119, 227, 0.4);
}

/* Контейнер отчета ИИ */
.ai-report-container {
    background: #fff;
    border: 2px dashed #a777e3;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-top: 20px;
}

.ai-report-header {
    color: #6e8efb;
    margin-bottom: 20px;
}

.ai-loader {
    color: #999;
    font-style: italic;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #0065dd;
    text-decoration: none;
    font-size: 14px;
}

/* Большая кнопка ИИ для всей закупки */
.ai-analysis-wrapper {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.2);
}

.btn-ai-big {
    display: inline-block;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s all;
    border: none;
    cursor: pointer;
}

.btn-ai-big:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(167, 119, 227, 0.4);
    opacity: 0.95;
}

/* Контейнер отчета */
.ai-report-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    margin-top: 20px;
    min-height: 400px;
}

.file-item {
    cursor: pointer;
    /* Указываем, что на строку можно нажать */
    display: grid;
    grid-template-columns: 40px 1fr auto;
    /* Колонка под чекбокс, название и кнопку */
    align-items: center;
}

.file-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.file-item:hover {
    background: #f0f7ff;
}

/* Анимация вращения */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

.loading-text {
    color: #666;
    font-style: italic;
    font-size: 16px;
    margin-top: 10px;
}

#ai-report-content {
    text-align: left;
    line-height: 1.6;
    color: #333;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}