/* Общие стили */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 960px;
    margin: 20px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header, footer {
    text-align: center;
    padding: 1rem 0;
}

header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

footer {
    border-top: 1px solid #ddd;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #777;
}

h1 {
    margin-bottom: 1rem;
    color: #3498db;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 10px;
    right: 10px;
}

#language-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* Drop Area */
.drop-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    color: #777;
}

.drop-area:hover {
    border-color: #3498db;
    background-color: #f9f9f9;
}

#select-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 15px;
}

#select-button:hover {
    background-color: #2980b9;
}

#file-input {
    display: none; /* Скрываем input file */
}

/* Preview Container */
#preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

#preview-container img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 5px;
    object-fit: cover;
}

/* Progress Bar */
#progress-container {
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    border-radius: 10px;
    text-align: center;
    line-height: 20px;
    color: white;
    transition: width 0.3s ease; /* Анимация */
    position: relative;
}

#progress-value {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
}

/* Upload Button */
#upload-button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}

#upload-button:hover {
    background-color: #27ae60;
}

/* Message */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .drop-area {
        padding: 30px;
    }

    #select-button {
        font-size: 0.9rem;
    }
}

#preview-container .audio-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 4rem;
    color: #777;
}

.supported-formats {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
    font-size: 0.9rem;
}