/* web_moderation/static/css/inventory_status.css */
/* Стили для дашборда инвентаризации */
/* Версия 1.0.0 - 12.12.2025 12:00 */

body {
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

/* Заголовок дашборда */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Карточки магазинов */
.shop-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    height: 100%;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.shop-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.shop-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.shop-status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-excellent {
    background: #d4edda;
    color: #155724;
}

.status-good {
    background: #cce5ff;
    color: #004085;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Прогресс бар */
.progress-container {
    margin: 20px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6c757d;
}

.progress-label .numbers {
    font-weight: 700;
    color: #2c3e50;
}

.progress {
    height: 12px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: visible;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-bar-success {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.progress-bar-warning {
    background: linear-gradient(90deg, #ffc107 0%, #fd7e14 100%);
}

.progress-bar-danger {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.stat-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-value.text-success {
    color: #28a745 !important;
}

.stat-value.text-warning {
    color: #ffc107 !important;
}

.stat-value.text-danger {
    color: #dc3545 !important;
}

/* Временные метрики */
.time-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.time-metric {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.time-metric i {
    color: #667eea;
    font-size: 16px;
}

.time-metric .label {
    color: #6c757d;
    margin-right: 4px;
}

.time-metric .value {
    font-weight: 600;
    color: #2c3e50;
}

/* Список неподтвержденных товаров */
.unconfirmed-preview {
    margin-top: 16px;
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
}

.unconfirmed-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unconfirmed-items {
    max-height: 120px;
    overflow-y: auto;
}

.unconfirmed-item {
    padding: 6px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.unconfirmed-item:last-child {
    border-bottom: none;
}

.unconfirmed-item-id {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 8px;
}

/* Модальное окно */
#shopDetailsModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#shopDetailsModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 20px 24px;
}

#shopDetailsModal .modal-body {
    padding: 24px;
}

/* Кнопки */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #674a8f 100%);
}

/* Карточки в модальном окне */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* Таблица истории */
.history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.history-table thead th {
    background: #f8f9fa;
    padding: 16px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    color: #6c757d;
    letter-spacing: 0.5px;
    border: none;
}

.history-table tbody tr {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.history-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.history-table tbody td {
    padding: 16px;
    border: none;
    vertical-align: middle;
}

.history-table tbody tr td:first-child {
    border-radius: 12px 0 0 12px;
}

.history-table tbody tr td:last-child {
    border-radius: 0 12px 12px 0;
}

/* Shift badges */
.shift-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.shift-morning {
    background: #fff3cd;
    color: #856404;
}

.shift-afternoon {
    background: #cce5ff;
    color: #004085;
}

.shift-evening {
    background: #d1ecf1;
    color: #0c5460;
}

/* Коллектор badge */
.collector-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #e7f3ff;
    color: #004085;
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header h1 {
        font-size: 1.8rem;
    }
    
    .shop-card {
        margin-bottom: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .time-metrics {
        grid-template-columns: 1fr;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-card {
    animation: fadeIn 0.5s ease;
}

.shop-card:nth-child(1) { animation-delay: 0.1s; }
.shop-card:nth-child(2) { animation-delay: 0.2s; }
.shop-card:nth-child(3) { animation-delay: 0.3s; }
.shop-card:nth-child(4) { animation-delay: 0.4s; }
.shop-card:nth-child(5) { animation-delay: 0.5s; }
.shop-card:nth-child(6) { animation-delay: 0.6s; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

