/* Дополнительные стили поверх Bootstrap 5 */

/* Общие */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Карточки статистики */
.stat-card {
    border-radius: 10px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Таблицы */
.table-hover tbody tr {
    cursor: pointer;
    transition: background-color 0.15s;
}

.table td, .table th {
    vertical-align: middle;
}

/* Формы */
.form-label {
    font-weight: 500;
}

.required::after {
    content: ' *';
    color: #dc3545;
}

/* Чат Q&A */
.qa-item {
    border-left: 3px solid #0d6efd;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.qa-item.my-question {
    border-left-color: #198754;
    background: #f0fff4;
}

.qa-item .qa-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.qa-item .qa-question {
    font-weight: 500;
    margin-bottom: 4px;
}

.qa-item .qa-answer {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f0f7ff;
    border-radius: 6px;
}

.qa-item .qa-label {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e9ecef;
    color: #495057;
}

.qa-item.my-question .qa-label {
    background: #198754;
    color: #fff;
}

/* Предпросмотр файлов */
.file-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.file-preview-item {
    width: 120px;
    height: 120px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2rem;
    color: #6c757d;
    background: #f8f9fa;
}

.file-preview-item .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.file-preview-item .remove-file {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(220,53,69,0.8);
    color: #fff;
    border: none;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Drag & drop зона */
.dropzone {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: #f8f9fa;
}

.dropzone:hover, .dropzone.dragover {
    border-color: #0d6efd;
    background: #f0f7ff;
}

.dropzone .dz-icon {
    font-size: 3rem;
    color: #adb5bd;
}

.dropzone p {
    margin-bottom: 0;
    color: #6c757d;
}

/* ===== LANDING PAGE ===== */

/* Hero */
.lp-hero {
    padding: 4rem 0 3rem;
    background: #fff;
    overflow: hidden;
}
.lp-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: #212529;
}
.lp-hero-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 540px;
    line-height: 1.6;
}
.lp-hero-badges {
    font-size: 0.9rem;
    color: #6c757d;
}
.lp-hero-badges i { font-size: 1.1rem; }

/* Ticker */
.lp-ticker {
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.75rem;
    color: #adb5bd;
    letter-spacing: 0.5px;
    width: 100%;
    position: relative;
}
.lp-ticker-inner {
    display: inline-block;
    width: max-content;
    animation: tickerScroll 25s linear infinite;
}
.lp-ticker-inner span {
    display: inline-block;
    padding-right: 2rem;
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.lp-savings-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}
.lp-savings-label { font-size: 0.9rem; color: #6c757d; margin-top: 0.5rem; }
.lp-savings-amount { font-size: 5rem; font-weight: 800; color: #198754; line-height: 1; }

/* Trust Stats */
.lp-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #212529;
}

/* Comparison */
.lp-chain {
    text-align: center;
}
.lp-chain-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}
.lp-chain-you {
    background: #e8f5e9;
    color: #198754;
    font-weight: 700;
}
.lp-chain-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #dee2e6;
    color: #495057;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}
.lp-chain-num.bg-success {
    background: #198754;
    color: #fff;
}
.lp-chain-arrow {
    font-size: 1.2rem;
    color: #dee2e6;
    line-height: 1;
    padding: 2px 0;
}
.lp-vs {
    font-size: 1.5rem;
    font-weight: 800;
    color: #dee2e6;
}

/* Price Chain */
.lp-price-chain {
    text-align: center;
}
.lp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
}
.lp-price-total {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}
.lp-price-arrow {
    font-size: 0.8rem;
    color: #6c757d;
    padding: 2px 0;
}

/* Why Trust - Coming Soon */
.lp-why-coming-soon {
    opacity: 0.5;
}

/* Services */
.lp-service-card {
    border-radius: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.lp-service-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* How It Works */
.lp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Categories */
.lp-cat-card {
    border-radius: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.lp-cat-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* Why Trust Us */
.lp-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 50%;
    font-size: 2rem;
}

/* Supplier Visual */
.lp-supplier-visual {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 3rem;
}

/* Статусы тендеров */
.badge-draft { background: #6c757d; }
.badge-active { background: #198754; }
.badge-closed { background: #dc3545; }
.badge-cancelled { background: #ffc107; color: #000; }

.badge-pending { background: #ffc107; color: #000; }
.badge-selected { background: #198754; }
.badge-rejected { background: #dc3545; }

/* Live Tenders */
.live-tender-row {
    transition: background 0.15s;
}
.live-tender-row:hover {
    background: #f8f9fa;
}

/* Tender Carousel */
.tender-carousel {
    height: 162px;
    overflow: hidden;
}
.tender-carousel-inner {
    animation: tenderScroll 12s linear infinite;
}
.tender-carousel:hover .tender-carousel-inner {
    animation-play-state: paused;
}
@keyframes tenderScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* LIVE Badge */
.live-pulse {
    animation: livePulse 1.5s infinite;
    vertical-align: middle;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220,53,69,0.7); }
    50% { opacity: 0.7; box-shadow: 0 0 12px 4px rgba(220,53,69,0.4); }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .lp-hero-title { font-size: 2rem; }
    .lp-savings-amount { font-size: 3.5rem; }
    .lp-stat-number { font-size: 1.6rem; }

    .stat-card .stat-number {
        font-size: 1.4rem;
    }

    .table-responsive {
        font-size: 0.9rem;
    }

    .file-preview-item {
        width: 80px;
        height: 80px;
    }
}

/* Анимация загрузки */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Стили для позиций смешанного тендера */
.position-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.position-item .remove-position {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Уведомления */
.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.notification-item.unread {
    background: #f0f7ff;
    font-weight: 500;
}

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

.notification-item .notif-date {
    font-size: 0.8rem;
    color: #6c757d;
}
