/* Базовые стили - минималистичный Microsoft стиль */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #323130;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    font-weight: 400;
}

/* ИЗМЕНЕНО: Увеличен максимальный ширины контейнера */
.container {
    max-width: 1400px; /* Было 1200px */
    margin: 0 auto;
    padding: 0 24px;
}

/* Шапка */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #edebe9;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: #323130;
    gap: 12px;
}

.logo i {
    color: #0078d4;
    font-size: 24px;
}

/* Меню */
.menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-btn {
    background: none;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #323130;
    transition: all 0.2s ease;
    font-family: inherit;
}

.menu-btn:hover {
    background-color: #f3f2f1;
    border-color: #e1dfdd;
}

.menu-btn i {
    font-size: 16px;
}

.menu-item {
    position: relative;
}

/* Выпадающие списки */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    border: 1px solid #e1dfdd;
    z-index: 1000;
    margin-top: 4px;
    padding: 8px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #323130;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f3f2f1;
}

/* Форма входа */
.login-box {
    padding: 16px;
}

.login-box h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #323130;
}

.login-box input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #a19f9d;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.login-box input:focus {
    outline: none;
    border-color: #0078d4;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #0078d4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #106ebe;
}

/* Основное содержимое */
.main {
    flex: 1;
    padding: 48px 0;
    display: flex;
    align-items: center;
}

/* ИЗМЕНЕНО: Увеличен размер сканера в 2 раза */
.scanner-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 60px; /* Было 48px */
    width: 100%;
    max-width: 1200px; /* Было 720px - увеличен почти в 2 раза */
    margin: 0 auto;
    border: 1px solid #e1dfdd;
}

.scanner-title {
    color: #323130;
    margin-bottom: 16px; /* Было 12px */
    font-size: 32px; /* Было 28px */
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px; /* Было 12px */
}

.scanner-title i {
    color: #0078d4;
    font-size: 36px; /* Было по умолчанию */
}

.scanner-subtitle {
    color: #605e5c;
    text-align: center;
    margin-bottom: 48px; /* Было 32px */
    font-size: 18px; /* Было 16px */
}

/* Зона загрузки */
.upload-zone {
    border: 2px dashed #c8c6c4;
    border-radius: 8px;
    padding: 64px 48px; /* Было 48px 32px */
    text-align: center;
    margin-bottom: 48px; /* Было 32px */
    transition: all 0.2s;
    background-color: #faf9f8;
}

.upload-zone.drag-over {
    border-color: #0078d4;
    background-color: #eef6fc;
}

.upload-icon {
    font-size: 72px; /* Было 56px */
    color: #c8c6c4;
    margin-bottom: 32px; /* Было 20px */
}

.upload-zone h3 {
    margin-bottom: 12px; /* Было 8px */
    font-size: 22px; /* Было 18px */
    font-weight: 600;
    color: #323130;
}

.upload-zone p {
    color: #605e5c;
    margin-bottom: 24px; /* Было 16px */
    font-size: 17px; /* Добавлено */
}

.browse-btn {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 16px 32px; /* Было 12px 24px */
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px; /* Было 15px */
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 12px; /* Было 10px */
    transition: background-color 0.2s;
    font-family: inherit;
}

.browse-btn:hover {
    background-color: #106ebe;
}

.file-info {
    margin-top: 24px; /* Было 16px */
    font-size: 16px; /* Было 14px */
    color: #605e5c;
}

/* Настройки сканирования */
.scan-settings {
    background-color: #faf9f8;
    border-radius: 8px;
    padding: 32px; /* Было 24px */
    margin-bottom: 48px; /* Было 32px */
    border: 1px solid #e1dfdd;
}

.scan-settings h3 {
    margin-bottom: 28px; /* Было 20px */
    color: #323130;
    font-size: 20px; /* Было 16px */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px; /* Было 10px */
}

.settings-options {
    display: flex;
    gap: 24px; /* Было 16px */
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.option {
    flex: 1;
    min-width: 320px; /* Было 200px - увеличен для большего пространства */
    display: flex;
    align-items: flex-start;
    padding: 24px; /* Было 16px */
    border: 1px solid #e1dfdd;
    border-radius: 8px; /* Было 6px */
    cursor: pointer;
    transition: all 0.2s;
    background-color: white;
}

.option:hover {
    border-color: #0078d4;
    background-color: #f3f2f1;
}

.option input {
    display: none;
}

.radio-btn {
    width: 22px; /* Было 18px */
    height: 22px; /* Было 18px */
    border: 2px solid #a19f9d;
    border-radius: 50%;
    margin-right: 16px; /* Было 12px */
    margin-top: 4px; /* Было 2px */
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.option input:checked + .radio-btn {
    border-color: #0078d4;
}

.option input:checked + .radio-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; /* Было 8px */
    height: 10px; /* Было 8px */
    background-color: #0078d4;
    border-radius: 50%;
}

.option-text {
    display: flex;
    flex-direction: column;
}

.option-text strong {
    color: #323130;
    margin-bottom: 6px; /* Было 4px */
    font-weight: 500;
    font-size: 18px; /* Добавлено */
}

.option-text small {
    color: #605e5c;
    font-size: 15px; /* Было 13px */
}

/* Параметры сканирования */
.scan-parameters {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e1dfdd;
}

.scan-parameters h3 {
    margin-bottom: 24px;
    color: #323130;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Переключатель режимов */
.mode-switcher {
    background-color: white;
    border: 1px solid #e1dfdd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
}

.mode-options {
    display: flex;
    gap: 0;
    background-color: #f3f2f1;
    border-radius: 6px;
    padding: 4px;
}

.mode-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.mode-option input {
    display: none;
}

.mode-text {
    display: block;
    padding: 12px 16px;
    border-radius: 4px;
    font-weight: 500;
    color: #605e5c;
    transition: all 0.2s;
}

.mode-option input:checked + .mode-text {
    background-color: white;
    color: #0078d4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Список антивирусов */
.antivirus-list {
    background-color: white;
    border: 1px solid #e1dfdd;
    border-radius: 8px;
    padding: 24px;
}

.antivirus-list h4 {
    margin-bottom: 20px;
    color: #323130;
    font-size: 18px;
    font-weight: 600;
}

.antivirus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.av-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e1dfdd;
    border-radius: 4px;
    background-color: #faf9f8;
    transition: all 0.2s;
}

.av-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: default;
}

.av-item label {
    font-size: 14px;
    color: #323130;
    cursor: default;
}

.av-item.disabled {
    opacity: 0.5;
}

/* Кнопка сканирования */
.scan-button {
    width: 100%;
    padding: 20px; /* Было 16px */
    background-color: #107c10;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 20px; /* Было 16px */
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px; /* Было 12px */
    transition: background-color 0.2s;
    font-family: inherit;
}

.scan-button:hover {
    background-color: #0e700e;
}

/* Результаты */
.results {
    background-color: #faf9f8;
    border-radius: 8px;
    padding: 32px; /* Было 24px */
    border-left: 4px solid #0078d4;
    border: 1px solid #e1dfdd;
}

.results h3 {
    margin-bottom: 28px; /* Было 20px */
    color: #323130;
    font-size: 20px; /* Было 16px */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px; /* Было 10px */
}

.result-content {
    display: flex;
    align-items: center;
    gap: 32px; /* Было 24px */
}

.result-icon {
    font-size: 56px; /* Было 48px */
    width: 88px; /* Было 72px */
    height: 88px; /* Было 72px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #e1dfdd;
}

.result-details {
    flex: 1;
}

.result-details h4 {
    margin-bottom: 12px; /* Было 8px */
    color: #323130;
    font-size: 22px; /* Было 18px */
    font-weight: 600;
}

.result-details p {
    color: #605e5c;
    margin-bottom: 24px; /* Было 16px */
    font-size: 18px; /* Добавлено */
}

.scan-info {
    background-color: white;
    padding: 20px; /* Было 16px */
    border-radius: 6px;
    border: 1px solid #e1dfdd;
    font-size: 16px; /* Было 14px */
}

.scan-info p {
    margin-bottom: 12px; /* Было 8px */
    display: flex;
    align-items: center;
    color: #605e5c;
}

.scan-info i {
    margin-right: 12px; /* Было 10px */
    width: 18px; /* Было 16px */
    color: #a19f9d;
}

/* Подвал */
.footer {
    background-color: #f3f2f1;
    color: #605e5c;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #e1dfdd;
    font-size: 14px;
}

/* Темная тема */
body.dark-theme {
    background-color: #1b1a19;
    color: #f3f2f1;
}

body.dark-theme .header,
body.dark-theme .scanner-card,
body.dark-theme .scan-settings,
body.dark-theme .results,
body.dark-theme .mode-switcher,
body.dark-theme .antivirus-list {
    background-color: #2d2c2c;
    border-color: #3b3a39;
}

body.dark-theme .logo,
body.dark-theme .scanner-title,
body.dark-theme .result-details h4,
body.dark-theme .antivirus-list h4 {
    color: #f3f2f1;
}

body.dark-theme .scanner-subtitle,
body.dark-theme .file-info,
body.dark-theme .option-text small,
body.dark-theme .result-details p {
    color: #d2d0ce;
}

body.dark-theme .menu-btn {
    color: #f3f2f1;
    border-color: #3b3a39;
}

body.dark-theme .menu-btn:hover {
    background-color: #323130;
}

body.dark-theme .dropdown-content {
    background-color: #2d2c2c;
    border-color: #3b3a39;
}

body.dark-theme .dropdown-content a {
    color: #f3f2f1;
}

body.dark-theme .dropdown-content a:hover {
    background-color: #323130;
}

body.dark-theme .upload-zone {
    background-color: #252423;
    border-color: #3b3a39;
}

body.dark-theme .upload-zone.drag-over {
    background-color: #0f6cbd;
    border-color: #0f6cbd;
}

body.dark-theme .option {
    background-color: #252423;
    border-color: #3b3a39;
}

body.dark-theme .scan-info {
    background-color: #252423;
    border-color: #3b3a39;
}

body.dark-theme .result-icon {
    background-color: #252423;
    border-color: #3b3a39;
}

body.dark-theme .footer {
    background-color: #252423;
    border-color: #3b3a39;
}

body.dark-theme .mode-options {
    background-color: #323130;
}

body.dark-theme .mode-text {
    color: #d2d0ce;
}

body.dark-theme .mode-option input:checked + .mode-text {
    background-color: #2d2c2c;
    color: #0078d4;
}

body.dark-theme .av-item {
    background-color: #252423;
    border-color: #3b3a39;
}

body.dark-theme .av-item label {
    color: #f3f2f1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .scanner-card {
        padding: 32px 24px;
    }
    
    .scanner-title {
        font-size: 24px;
    }
    
    .upload-zone {
        padding: 32px 16px;
    }
    
    .settings-options {
        flex-direction: column;
    }
    
    .option {
        min-width: 100%;
    }
    
    .antivirus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .result-icon {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .antivirus-grid {
        grid-template-columns: 1fr;
    }
    
    .mode-options {
        flex-direction: column;
    }
}

/* Стили для кнопки-ссылки сканирования */
.scan-button {
    width: 100%;
    padding: 20px;
    background-color: #107c10;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    transition: background-color 0.2s;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
}

.scan-button:hover {
    background-color: #0e700e;
}

/* Убираем стили кнопки для ссылок в меню */
.menu > a.menu-btn {
    text-decoration: none;
    display: inline-block;
}

/* Добавляем в конец файла */

/* Улучшенные стили для dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    border: 1px solid #e1dfdd;
    z-index: 1000;
    margin-top: 4px;
    padding: 8px 0;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Добавляем треугольник-стрелку к dropdown */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background-color: white;
    transform: rotate(45deg);
    border-top: 1px solid #e1dfdd;
    border-left: 1px solid #e1dfdd;
    z-index: -1;
}

/* Темная тема для стрелки */
body.dark-theme .dropdown-content::before {
    background-color: #2d2c2c;
    border-color: #3b3a39;
}

/* Улучшаем hover эффекты для элементов dropdown */
.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #323130;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.dropdown-content a:hover {
    background-color: #f3f2f1;
    padding-left: 20px;
}

/* Анимация для элементов dropdown */
.dropdown-content a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #0078d4;
    transform: translateX(-100%);
    transition: transform 0.2s;
}

.dropdown-content a:hover::after {
    transform: translateX(0);
}

/* Улучшаем форму входа */
.login-box {
    padding: 16px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшаем кнопку входа в dropdown */
.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #0078d4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background-color: #106ebe;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* Эффект ripple для кнопок */
.login-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.login-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Улучшаем поля ввода в dropdown */
.login-box input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #a19f9d;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.login-box input:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

/* Улучшаем адаптивность dropdown */
@media (max-width: 768px) {
    .dropdown-content {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 320px;
        max-height: 80vh;
        overflow-y: auto;
        margin-top: 0;
        animation: modalFadeIn 0.3s ease-out;
    }
    
    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: translate(-50%, -60%);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }
    
    .dropdown-content::before {
        display: none;
    }
}

.error-message {
    display: none;
    color: #d13438;
    margin-top: 10px;
    padding: 10px;
    background-color: #fde7e9;
    border: 1px solid #d13438;
    border-radius: 4px;
    font-size: 14px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Стили для зоны загрузки при ошибке */
.upload-zone.error {
    border-color: #d13438;
    background-color: #fde7e9;
}

/* Темная тема для ошибок */
body.dark-theme .error-message {
    background-color: #3d2b2c;
    border-color: #d13438;
    color: #ff5a5f;
}

body.dark-theme .upload-zone.error {
    border-color: #d13438;
    background-color: #3d2b2c;
}