.main-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', system-ui, sans-serif;
}

h1 {
    text-align: center;
    color: #333;
    margin-top: 30px;
}

/* Drop Zone */
.drop-zone {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
    color: #666;
    margin-bottom: 20px;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
    color: #3b82f6;
}

/* Preview Area */
.preview-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.preview-item {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f0f0f0;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.preview-item .image-index {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

/* Controls */
.controls {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quality-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 10px;
}

.quality-selector select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn.primary {
    background-color: #3b82f6;
    color: white;
}

.btn.primary:hover:not(:disabled) {
    background-color: #2563eb;
}

.btn.primary:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
}

.btn.secondary {
    background-color: #94a3b8;
    color: white;
}

.btn.secondary:hover {
    background-color: #64748b;
}

#status-message {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 1.5rem;
}

footer {
    text-align: center;
    margin-top: 50px;
    color: #888;
    font-size: 0.9em;
}