/* --- Базовые стили (из Pasted_Text) --- */
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
} */

/* body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
} */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 4rem);
}

/* header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
} */

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 242, 254, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    color: #a0d2ff;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* --- Фоновые элементы --- */
/* .particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(79, 172, 254, 0.6);
    border-radius: 50%;
    pointer-events: none;
} */

/* .wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 242, 254, 0.05),
        rgba(0, 242, 254, 0.05) 10px,
        rgba(79, 172, 254, 0.05) 10px,
        rgba(79, 172, 254, 0.05) 20px
    );
} */

/* --- Навигация (общая) --- */
/* .nav-container {
    position: relative;
    margin-bottom: 2rem;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.1rem;
    list-style: none;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    justify-content: center;
}

.nav a {
    color: #a0d2ff;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav a:hover {
    color: #00f2fe;
    background: rgba(79, 172, 254, 0.15);
}

.nav a.active {
    color: #00f2fe;
    font-weight: 600;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
} */

/* --- Стили для страницы "Загрузка" --- */

/* --- Поле ввода --- */
.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    color: #a0d2ff;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.text-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.text-input:focus {
    border-color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* --- Область добавления файлов --- */
.file-upload-area {
    margin-bottom: 1.5rem;
}

.file-drop-area {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(79, 172, 254, 0.3);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-drop-area.drag-over {
    background: rgba(0, 242, 254, 0.1);
    border-color: #00f2fe;
    transform: translateY(-2px);
    animation: pulse-border 1s infinite alternate;
}

@keyframes pulse-border {
    to {
        box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    }
}

.file-drop-area:hover {
    border-color: #00f2fe;
    background: rgba(0, 242, 254, 0.05);
}

.upload-icon-container {
    margin-bottom: 1rem;
}

.upload-svg {
    width: 60px;
    height: 60px;
    stroke: #00f2fe;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.3));
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.drop-text {
    color: #a0d2ff;
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
}

.drop-subtext {
    color: #80c0ff;
    font-size: 0.9rem;
    opacity: 0.8;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* --- Список файлов --- */
.file-list {
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #d0f0ff;
    font-weight: 500;
    text-align: start;
}

.file-size {
    color: #80c0ff;
    margin: 0 1rem;
    font-size: 0.85rem;
    min-width: 60px;
    text-align: right;
}

/* --- Прогресс-бар --- */
.file-progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    width: 180px;
    font-size: 0.85rem;
    color: #a0d2ff;
}

.file-progress-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.file-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 3px;
    transition: width 0.2s ease;
}

.file-progress-text {
    min-width: 30px;
    text-align: right;
    font-weight: 500;
}

/* --- Статус (SVG иконки) --- */
.file-status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 1rem;
}

.status-icon {
    width: 18px;
    height: 18px;
    stroke: #a0d2ff;
    transition: all 0.3s ease;
}

.status-icon.pending {
    stroke: #80c0ff;
    opacity: 0.7;
}

.status-icon.uploading {
    stroke: #00f2fe;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.status-icon.success {
    stroke: #4fffaa;
}

.status-icon.error {
    stroke: #ff6b6b;
}

/* --- Статистика загрузки --- */
.upload-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: #a0d2ff;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #80c0ff;
    opacity: 0.9;
}

.stat-value {
    font-weight: 600;
    color: #00f2fe;
    font-size: 1rem;
}

/* --- Кнопки действий --- */
.upload-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.upload-btn {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* width: 220px; */
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.4);
}

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-all-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.cancel-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
}

/* --- Результат --- */
/* .result-container {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.result-icon {
    display: none;
    width: 40px;
    height: 40px;
} */
 .result-container {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.result-icon {
    display: none;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
}

.result-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.success-svg {
    stroke: #4fffaa !important;
    animation: pulse 2s infinite;
}

.error-svg {
    stroke: #ff6b6b !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.result-text {
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-text.success,
.result-text.error {
    opacity: 1;
}

/* --- Веб-уведомления (справа внизу) --- */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
}

.notification {
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    opacity: 1;
    transition: opacity 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.notification-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.notification-content {
    flex: 1;
    font-size: 0.95rem;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #e0e0e0;
}

.notification-message {
    color: #a0d2ff;
    font-size: 0.85rem;
}

.notification-close {
    background: none;
    border: none;
    color: #80c0ff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

.notification-info { border-left: 4px solid #4facfe; }
.notification-success { border-left: 4px solid #4fffaa; }
.notification-error { border-left: 4px solid #ff6b6b; }
.notification-warning { border-left: 4px solid #ffd700; }

/* --- Адаптив --- */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .nav {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }

    .upload-actions {
        flex-direction: column;
    }

    .upload-btn,
    .cancel-all-btn {
        width: 100%;
    }

    .upload-stats {
        flex-direction: column;
        font-size: 0.9rem;
    }

    .file-progress-container {
        width: 140px;
    }

    .file-progress-bar {
        width: 80px;
    }
}

/* --- Кнопка отмены --- */
.control-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .control-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    cursor: pointer;
} */
.cancel-btn {
    color: #ff6b6b;
}

/* .cancel-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    cursor: pointer;
} */

/* Стили для hover */
.control-btn:not(:disabled):hover {
  /* ваши hover-стили */
  /* background-color: #f0f0f0; */
    opacity: 1;
    transform: scale(1.1);
}

/* Стили для disabled состояния */
.control-btn:disabled {
  pointer-events: none;
  opacity: 0.7;
  cursor: default;
}

/* -------------- */
/* -------------- */
/* -------------- */
/* -------------- */

/* --- Статус (SVG иконки) --- */
.file-status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 1rem;
}

.status-icon {
    width: 18px;
    height: 18px;
    stroke: #a0d2ff;
    transition: all 0.3s ease;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Ожидает — часы */
.status-icon.pending {
    stroke: #80c0ff;
    opacity: 0.8;
}

/* Загружается — анимированный спиннер */
.status-icon.uploading {
    stroke: #00f2fe;
    animation: spin 1.2s linear infinite;
    opacity: 1;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Готово — галочка */
.status-icon.success {
    stroke: #4fffaa;
    opacity: 1;
}

/* Ошибка — крестик */
.status-icon.error {
    stroke: #ff6b6b;
    opacity: 1;
}

/* Дополнительная анимация для успеха */
.status-icon.success {
    animation: pop-in 0.3s ease forwards;
}

@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Группы файлов --- */
.file-group {
    margin-bottom: 2rem;
}

.file-group h3 {
    font-size: 1.3rem;
    color: #00f2fe;
    margin-bottom: 0.5rem;
}

.file-hint {
    font-size: 0.9rem;
    color: #80c0ff;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* --- Единый стиль для всех областей загрузки --- */
.file-drop-area {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(79, 172, 254, 0.3);
    border-radius: 16px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-drop-area.drag-over {
    background: rgba(0, 242, 254, 0.1);
    border-color: #00f2fe;
    transform: translateY(-2px);
}

.file-drop-area:hover {
    border-color: #00f2fe;
    background: rgba(0, 242, 254, 0.05);
}

/* --- Списки файлов --- */
.file-list {
    margin-top: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
}