/* ========================================
   Проверка файла на вирусы
   ======================================== */

/* Основной контейнер */
.antivirus-check-tool {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Форма */
.antivirus-form-section {
    margin-bottom: 30px;
}

.antivirus-form-group {
    margin-bottom: 25px;
}

.antivirus-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
}

/* Загрузка файла */
.antivirus-file-input-wrapper {
    position: relative;
}

.antivirus-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.antivirus-file-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    color: #555;
}

.antivirus-file-label:hover {
    background-color: #e9ecef;
    border-color: #0066cc;
}

.antivirus-file-label i {
    font-size: 18px;
    color: #0066cc;
}

.file-name-display {
    display: inline-block;
    margin-left: 15px;
    color: #0066cc;
    font-weight: 500;
}

.antivirus-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

/* Блок с разрешенными форматами */
.antivirus-allowed-formats {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
}

.antivirus-allowed-formats p {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #333;
}

.antivirus-allowed-formats strong {
    color: #0066cc;
}

.antivirus-allowed-formats ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.antivirus-allowed-formats ul li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.antivirus-allowed-formats ul li i {
    color: #28a745;
    margin-right: 8px;
}

.antivirus-note {
    padding: 12px;
    background-color: #fff3cd;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
    font-size: 14px;
    color: #856404;
}

.antivirus-note i {
    color: #ffc107;
    margin-right: 6px;
}

/* Разделитель */
.antivirus-separator {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.antivirus-separator::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: #ddd;
}

.antivirus-separator span {
    display: inline-block;
    padding: 0 15px;
    background-color: #fff;
    position: relative;
    z-index: 1;
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

/* Поле URL */
.antivirus-url-input-group {
    display: flex;
    gap: 12px;
}

.antivirus-url-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.antivirus-url-input:focus {
    outline: none;
    border-color: #0066cc;
}

.antivirus-url-input::placeholder {
    color: #999;
}

/* Кнопка проверки */
#antivirus-check-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

#antivirus-check-btn i {
    font-size: 18px;
}

/* Результаты проверки */
.antivirus-results {
    display: none;
    margin-top: 30px;
}

.antivirus-result-card {
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

/* Статус */
.antivirus-status {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.antivirus-status i {
    font-size: 32px;
}

.antivirus-status h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.antivirus-clean {
    background-color: #d4edda;
    color: #155724;
    border-bottom: 2px solid #c3e6cb;
}

.antivirus-clean i {
    color: #28a745;
}

.antivirus-infected {
    background-color: #f8d7da;
    color: #721c24;
    border-bottom: 2px solid #f5c6cb;
}

.antivirus-infected i {
    color: #dc3545;
}

/* Сетка информации */
.antivirus-info-grid {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.antivirus-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.antivirus-info-item .antivirus-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.antivirus-value {
    font-size: 15px;
    color: #333;
    word-break: break-word;
}

.antivirus-hash {
    font-family: monospace;
    font-size: 13px;
    background-color: #f8f9fa;
    padding: 5px 8px;
    border-radius: 4px;
}

/* Обнаруженные угрозы */
.antivirus-threats {
    padding: 20px 25px;
    background-color: #fff3cd;
    border-top: 1px solid #ffeaa7;
}

.antivirus-threats h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #856404;
}

.threat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.threat-list li {
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: #fff;
    border-left: 3px solid #dc3545;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #721c24;
}

.threat-list li i {
    color: #dc3545;
}

/* Дополнительная информация */
.antivirus-additional-info {
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.antivirus-additional-info p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* ========================================
   Адаптивность для antivirus
   ======================================== */

@media (max-width: 1400px) {
    .antivirus-check-tool {
        padding: 25px;
    }
}

@media (max-width: 1200px) {
    .antivirus-info-grid {
        gap: 18px;
    }
}

@media (max-width: 991px) {
    .antivirus-check-tool {
        padding: 20px;
    }
    
    .antivirus-info-grid {
        padding: 20px;
    }
}

@media (max-width: 810px) {
    .antivirus-status h3 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .antivirus-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 650px) {
    .antivirus-check-tool {
        padding: 18px;
    }
    
    .antivirus-form-section {
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .antivirus-status {
        padding: 15px;
        gap: 12px;
    }
    
    .antivirus-status i {
        font-size: 28px;
    }
    
    .antivirus-status h3 {
        font-size: 17px;
    }
    
    .antivirus-info-grid {
        padding: 18px;
    }
    
    .antivirus-allowed-formats {
        padding: 15px;
    }
    
    .antivirus-allowed-formats ul li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .antivirus-check-tool {
        padding: 15px;
    }
    
    .antivirus-label {
        font-size: 14px;
    }
    
    .antivirus-url-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .antivirus-file-label {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .antivirus-status h3 {
        font-size: 16px;
    }
    
    .threat-list li {
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .antivirus-check-tool {
        padding: 12px;
    }
    
    .antivirus-info-grid {
        padding: 15px;
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .antivirus-status {
        padding: 12px;
    }
    
    .antivirus-value {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .antivirus-check-tool {
        padding: 10px;
    }
    
    .antivirus-label {
        font-size: 13px;
    }
    
    .antivirus-file-label {
        padding: 8px 16px;
        font-size: 13px;
    }
}
