* {
    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: #f7f9fc;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.description {
    text-align: center;
    margin-bottom: 30px;
    color: #7f8c8d;
}

.upload-section {
    margin-bottom: 30px;
}

.upload-label {
    display: block;
    cursor: pointer;
}

.upload-area {
    border: 3px dashed #3498db;
    border-radius: 10px;
    padding: 50px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-area:hover, .upload-area.dragover {
    background-color: #ecf0f1;
    border-color: #2980b9;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #3498db;
}

.preview-section {
    margin-bottom: 30px;
}

h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}

.images-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.image-box {
    flex: 1;
    min-width: 300px;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.image-box h4 {
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ecf0f1;
    margin: 0;
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
    background-color: #f8f8f8;
}

#processedImageContainer {
    position: relative;
    min-height: 300px;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.processing-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #3498db;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

#downloadBtn {
    background-color: #2ecc71;
    color: white;
}

#downloadBtn:hover {
    background-color: #27ae60;
}

#downloadBtn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#newImageBtn {
    background-color: #3498db;
    color: white;
}

#newImageBtn:hover {
    background-color: #2980b9;
}

.status-section {
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.status-container {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.status-item {
    margin-bottom: 5px;
    padding: 5px;
    background-color: #fff;
    border-radius: 3px;
    font-size: 14px;
}

.retry-button {
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.retry-button:hover {
    background-color: #3e8e41;
}

footer {
    text-align: center;
    margin-top: 50px;
    color: #7f8c8d;
    font-size: 14px;
} 