body {
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

.container {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    max-width: 900px;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

select,
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-sizing: border-box;
    background: white;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

details {
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    margin-top: 1rem;
}

summary {
    font-weight: 600;
    cursor: pointer;
    color: #555;
}

.advanced-settings {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
}

.warning-text {
    color: #b91c1c;
    font-size: 0.85rem;
    margin-top: 4px;
}

.help-text {
    color: #666;
    font-size: 0.85rem;
    margin-top: 4px;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.btn-group .btn {
    flex: 1;
    justify-content: center;
}

#status {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    color: #0284c7;
}

.workspace {
    margin-top: 2rem;
    border-top: 2px solid var(--border);
    padding-top: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pagination .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.preview-panels {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.panel {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel h3 {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
}
