/* Main Layout */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #2196F3;
    text-align: center;
    margin-bottom: 30px;
}

/* Form Sections */
.section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.section h2 {
    color: #2196F3;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
}

/* Dropzones */
.dropzone {
    border: 2px dashed #2196F3;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fff;
    position: relative;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.dropzone.dragover {
    background: #e3f2fd;
    border-color: #1976D2;
}

.dropzone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone p {
    margin: 0;
    color: #666;
}

/* Progress Bars */
.progress-container {
    display: none;
    margin-top: 10px;
}

.progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    background: #2196F3;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

/* Generate Button */
.generate-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 200px;
}

.generate-btn:hover:not(:disabled) {
    background: #1976D2;
    transform: translateY(-1px);
}

.generate-btn:active:not(:disabled) {
    transform: translateY(0);
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

/* Clear Button */
.clear-btn {
    background: #e9ecef;
    color: #495057;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #dee2e6;
    transform: translateY(-1px);
}

.clear-btn:active {
    transform: translateY(0);
}

/* Download All Button */
.download-all-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto;
}

.download-all-btn:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
}

.download-all-btn:active:not(:disabled) {
    transform: translateY(0);
}

.download-all-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

#downloadAllContainer {
    text-align: center;
    margin-bottom: 20px;
}

/* Style Options */
.style-options {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.style-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.style-row label {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.style-row input[type="range"] {
    width: 100%;
}

/* Text Input */
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    margin-top: 10px;
}

/* Select Inputs */
select {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    width: 100%;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid #c62828;
}

/* Export Options */
.export-options {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.export-options select {
    width: auto;
    display: block;
    margin-top: 5px;
}

/* Preview Section */
.preview-section {
    margin-top: 30px;
}
