body { font-feature-settings: "cv11"; }
.table td, .table th { vertical-align: middle; }

/* ============================================================================
   СТИЛИ ДЛЯ ЕДИНОГО ДАШБОРДА ВАЛИДАЦИИ
   ============================================================================ */

/* Основной контейнер */
.unified-validation-dashboard {
    padding: 20px 0;
}

/* Шапка со статистикой */
.validation-stats-header {
    margin-bottom: 30px;
}

.validation-stats-header .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.validation-stats-header .card:hover {
    transform: translateY(-2px);
}

/* Блок кнопок валидации */
.validation-buttons {
    padding: 20px 0;
}

.validation-btn {
    height: 150px !important;
    width: 100%;
    border: 2px solid transparent;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.validation-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.validation-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Цвета кнопок валидации */
.validation-btn-email {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
}

.validation-btn-email:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
}

.validation-btn-phone {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border-color: #28a745;
}

.validation-btn-phone:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    color: white;
}

.validation-btn-telegram {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
    color: white;
    border-color: #17a2b8;
}

.validation-btn-telegram:hover {
    background: linear-gradient(135deg, #117a8b, #0c5460);
    color: white;
}

.validation-btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #1da851);
    color: white;
    border-color: #25d366;
}

.validation-btn-whatsapp:hover {
    background: linear-gradient(135deg, #1da851, #128c7e);
    color: white;
}

.validation-btn-all {
    background: linear-gradient(135deg, #fd7e14, #e55a00);
    color: white;
    border-color: #fd7e14;
}

.validation-btn-all:hover {
    background: linear-gradient(135deg, #e55a00, #cc4b00);
    color: white;
}

/* Блок прогресса валидации */
.validation-progress {
    padding: 20px 0;
}

.progress-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #dee2e6;
}

.progress-item h6 {
    margin-bottom: 15px;
    font-weight: 600;
}

/* Прогресс-бары */
.progress {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar-animated {
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, .2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .2) 50%,
        rgba(255, 255, 255, .2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* Цвета прогресс-баров */
.progress-success {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.progress-info {
    background: linear-gradient(90deg, #17a2b8, #007bff);
}

.progress-warning {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.progress-danger {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
}

/* Статус воркеров */
.workers-status {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.workers-status .row {
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

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

/* Живой лог валидации */
.validation-log {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 8px;
    border: 1px solid #343a40;
}

.log-entry {
    padding: 2px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.log-entry:last-child {
    border-bottom: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .validation-btn {
        height: 120px !important;
        font-size: 14px;
    }
    
    .validation-btn i {
        font-size: 1.5rem !important;
    }
    
    .progress-item {
        padding: 15px;
    }
    
    .unified-validation-dashboard {
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .validation-btn {
        height: 100px !important;
        font-size: 12px;
    }
    
    .validation-btn i {
        font-size: 1.2rem !important;
    }
    
    .validation-stats-header .col-md-3 {
        margin-bottom: 15px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.validation-stats-header .card,
.validation-btn,
.progress-item {
    animation: fadeIn 0.6s ease-out;
}

/* Уведомления */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Кнопки управления */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Карточки */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

/* Загрузка */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}
