/* Основные настройки */
:root {
    --primary-color: #4A90E2;
    --success-color: #50C878;
    --error-color: #FF6347;
    --background-color: #f0f2f5;
    --card-color: #ffffff;
    --text-color: #333333;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  max-width: 100%;
  padding: 0 2rem;
}
.company-name {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem; /* Отступ до формы */
}
/* Контейнер загрузки */
.upload-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto; /* Центрирует по горизонтали */
    padding: 2rem;
}

.upload-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
    border: 2px solid #e0e0e0; /* 🖼️ Лёгкая серая рамка */
}

/* Необязательно: эффект при наведении */
.upload-card:hover {
    border-color: var(--primary-color); /* 🌈 Цвет рамки при наведении */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Заголовок */
.upload-header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.upload-header p {
    color: var(--text-color);
    font-size: 1rem;
    opacity: 0.8;
}
.loader {
    text-align: center;
    margin-top: 2rem;
    display: none; /* По умолчанию скрыт */
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.upload-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.progress-container {
    width: 100%;
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.2s ease;
}
/* Сообщения */
.message {
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    font-weight: 500;
    animation: fadeIn 0.5s ease-in-out;
}

.success {
    background-color: rgba(80, 200, 120, 0.1);
    color: #2ECC71;
}

.error {
    background-color: rgba(255, 99, 71, 0.1);
    border-radius: 8px;
}

/* Форма */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Стилизация инпута файла */
.file-input-wrapper {
    position: relative;
    height: 50px;
}

.file-input-wrapper input[type="file"] {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-input-wrapper label {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.file-input-wrapper label:hover {
    background-color: #357ABD;
}

.file-icon {
    margin-left: 10px;
    font-size: 1.2rem;
}

/* Кнопка загрузки */
.upload-btn {
background-color: var(--success-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.upload-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    border-radius: 50%;
    z-index: 0;
}

.upload-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.arrow {
    font-size: 1.2rem;
    transition: transform var(--transition-speed) ease;
}

.upload-btn:hover .arrow {
    transform: translateX(5px);
}

/* Информационный блок */
.info-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.info-box ul {
    list-style: none;
    padding-left: 1.2rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    position: relative;
}

.info-box li::before {
    content: "✓";
    color: var(--primary-color);
    margin-right: 0.5rem;
    position: absolute;
    left: -1.2rem;
}
/* secondary button */
.secondary-btn {
    display: inline-block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    margin-top: 1.5rem;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}
.download-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2ECC71;
    color: white;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--transition-speed) ease;
    margin-top: 1.5rem;
}

.download-btn:hover {
    background-color: #27AE60;
}
/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность */
@media (max-width: 500px) {
    .upload-card {
        padding: 1.5rem;
    }
    
    .upload-header h1 {
        font-size: 1.5rem;
    }
}