/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

/* Upload area styles */
.upload-area {
    border: 2px dashed #3498db;
    border-radius: 5px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.upload-area:hover {
    background-color: #f0f8ff;
    border-color: #2980b9;
}

.upload-area p {
    margin: 0;
    color: #7f8c8d;
}

.upload-area.highlight {
    background-color: #e1f0fa;
}

#fileInput {
    display: none;
}

/* Options styles */
.options {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

select, button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Progress bar styles */
.progress-container {
    margin-top: 20px;
    display: none;
}

.progress-bar {
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar div {
    height: 100%;
    background-color: #2ecc71;
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    display: block;
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
}

/* Result styles */
.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.download-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-align: center;
}

.download-link:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.download-link:active {
    transform: translateY(0);
}

/* Error message styles */
.error-message {
    color: #e74c3c;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    background-color: #fadbd8;
}
