/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eaeaea;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

header h1 i {
    color: #e74c3c;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Info Box */
.info-box {
    background: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-box i {
    color: #3498db;
    margin-top: 3px;
}

/* Converter Box */
.converter-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px dashed #dee2e6;
}

/* Upload Area */
.upload-area {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 10px;
    border: 2px dashed #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.upload-area:hover {
    background: #f0f8ff;
    border-color: #2980b9;
}

.upload-area i {
    font-size: 60px;
    color: #3498db;
    margin-bottom: 20px;
}

.upload-area h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.upload-area p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.upload-area input[type="file"] {
    display: none;
}

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

/* File Info Box */
.file-info-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2ecc71;
    margin-bottom: 25px;
}

.file-info-box h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-info-box h4 i {
    color: #e74c3c;
}

/* Options Box */
.options-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.options-box h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.option input {
    margin-right: 10px;
    transform: scale(1.2);
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-primary, .btn-success, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #27ae60;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-primary:disabled, .btn-success:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Progress Bar */
.progress-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.progress-label {
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.progress-bar {
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
}

/* Message Box */
.message {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

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

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

/* Backend Box */
.backend-box {
    background: #fff8e1;
    border: 2px solid #ffd54f;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.backend-box h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.backend-box h3 i {
    color: #f39c12;
}

.upload-form {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.upload-form input[type="file"] {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    min-width: 250px;
}

/* Instructions */
.instructions {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.step {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Libraries Info */
.libraries-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.libraries-info h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.libraries-info ul {
    list-style: none;
    padding-left: 20px;
}

.libraries-info li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.libraries-info li:before {
    content: "•";
    color: #3498db;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #eaeaea;
    color: #7f8c8d;
}

.disclaimer {
    font-size: 0.9rem;
    margin-top: 10px;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-success, .btn-secondary {
        min-width: 100%;
    }
    
    .upload-form {
        flex-direction: column;
    }
    
    .upload-form input[type="file"] {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .converter-box {
        padding: 20px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-area i {
        font-size: 40px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}
