* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0f0f0f;
    color: #e8e8e8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 680px;
}

header {
    margin-bottom: 48px;
    text-align: center;
}

h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-transform: uppercase;
}

.subtitle {
    margin-top: 8px;
    color: #666;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

/* Steps */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* Description step */
#step-description label {
    display: block;
    margin-bottom: 12px;
    color: #aaa;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #e8e8e8;
    font-size: 1rem;
    padding: 16px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    line-height: 1.5;
}

textarea:focus {
    border-color: #444;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    background: #ffffff;
    color: #0f0f0f;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    letter-spacing: 0.03em;
}

.btn-primary:hover {
    background: #ddd;
}

.btn-secondary {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    background: transparent;
    color: #888;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    letter-spacing: 0.03em;
}

.btn-secondary:hover {
    border-color: #666;
    color: #ccc;
}

/* Questions */
.question-counter {
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.question-text {
    display: block;
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 24px;
    color: #fff;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    padding: 14px 20px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #ccc;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}

.option-btn:hover {
    border-color: #555;
    color: #fff;
    background: #222;
}

.option-btn.selected {
    border-color: #fff;
    color: #fff;
    background: #222;
}

.extra-field {
    margin-top: 28px;
}

.extra-field label {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Loading */
#step-generating {
    text-align: center;
    padding: 80px 0;
}

.loader {
    width: 40px;
    height: 40px;
    border: 2px solid #2a2a2a;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 0.85rem;
    color: #555;
}

/* Result */
.result-image-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
}

.result-image-container img {
    width: 100%;
    display: block;
}

.result-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.prompt-reveal {
    margin-top: 32px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #222;
}

.prompt-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
    margin-bottom: 10px;
}

.prompt-text {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.7;
}

/* Error */
#step-error {
    text-align: center;
    padding: 60px 0;
}

.error-text {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 8px;
}

.error-detail {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
}
