/* Audio Converter Styles */

.audio-converter {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #007bff;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.upload-area:hover {
    border-color: #0056b3;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-content h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.upload-content p {
    margin: 0.25rem 0;
    color: #666;
}

.file-info {
    font-size: 0.9rem;
    color: #888;
}

/* Converter Interface */
.converter-interface {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Audio Info Section */
.audio-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.audio-info h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.25rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.info-item .label {
    font-weight: 600;
    color: #495057;
}

.info-item span:last-child {
    color: #007bff;
    font-weight: 500;
}

/* Conversion Options */
.conversion-options {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.conversion-options h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.25rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.option-group select {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.option-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Buttons */
.convert-btn, .download-btn, .reset-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.convert-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    width: 100%;
}

.convert-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.convert-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.download-btn {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    margin-right: 1rem;
}

.download-btn:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.reset-btn {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #545b62 0%, #3d4449 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Progress */
.progress {
    margin: 1rem 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    animation: progress-animation 2s infinite;
}

@keyframes progress-animation {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    color: #007bff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Result Area */
.result-area {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.result-area h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.25rem;
}

.result-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Audio Controls */
audio {
    width: 100%;
    margin: 1rem 0;
    border-radius: 6px;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-weight: 500;
}

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

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

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .audio-converter {
        padding: 1rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .info-grid, .options-grid {
        grid-template-columns: 1fr;
    }
    
    .result-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .download-btn {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .reset-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .upload-content h3 {
        font-size: 1.25rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .convert-btn, .download-btn, .reset-btn {
        padding: 1rem;
        font-size: 1rem;
    }
}
