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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    color: #4fc3f7;
    margin-bottom: 0.25rem;
    font-size: 1.8rem;
}

.subtitle {
    color: #888;
    margin-bottom: 2rem;
}

.input-section {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #b0b0b0;
    font-weight: 500;
}

.input-row {
    display: flex;
    gap: 0.75rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #333;
    border-radius: 6px;
    background: #16213e;
    color: #e0e0e0;
    font-size: 0.95rem;
}

input[type="text"]:focus {
    outline: none;
    border-color: #4fc3f7;
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    background: #4fc3f7;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}

button:hover {
    background: #81d4fa;
}

button:disabled {
    background: #555;
    cursor: not-allowed;
}

.format-section {
    margin-bottom: 1.5rem;
}

select {
    padding: 0.75rem 1rem;
    border: 1px solid #333;
    border-radius: 6px;
    background: #16213e;
    color: #e0e0e0;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 300px;
}

select:focus {
    outline: none;
    border-color: #4fc3f7;
}

.output-buttons {
    display: flex;
    gap: 0.5rem;
}

.status {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.status.loading {
    background: #1a237e;
    border: 1px solid #3949ab;
    color: #90caf9;
}

.status.error {
    background: #3e1a1a;
    border: 1px solid #c62828;
    color: #ef9a9a;
}

.status.success {
    background: #1a3e1a;
    border: 1px solid #2e7d32;
    color: #a5d6a7;
}

.hidden {
    display: none;
}

.build-info {
    background: #16213e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.build-info h3 {
    color: #4fc3f7;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
}

.info-label {
    color: #888;
    font-weight: 500;
}

.output-section {
    margin-top: 1rem;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.output-header h3 {
    color: #4fc3f7;
}

#outputArea {
    width: 100%;
    height: 300px;
    padding: 1rem;
    border: 1px solid #333;
    border-radius: 6px;
    background: #0f0f23;
    color: #a5d6a7;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    resize: vertical;
}

.instructions {
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
}

.help-section {
    margin-top: 1.5rem;
    background: #16213e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.help-section summary {
    color: #4fc3f7;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
}

.help-section p {
    margin: 0.5rem 0;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.bg2-steps {
    margin: 0.75rem 0 0.5rem 1.5rem;
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.bg2-steps strong {
    color: #e0e0e0;
}

.help-note {
    color: #ffb74d;
    font-size: 0.85rem;
    font-style: italic;
}
