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

body {
    font-family: 'Space Mono', monospace;
    background: white;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

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

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

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

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    border: 2px solid #1a1a1a;
    background: white;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.generate-btn,
.regenerate-btn {
    width: 100%;
    padding: 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    background: #1a1a1a;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.generate-btn:hover,
.regenerate-btn:hover {
    background: #333;
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.progress-section {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 2px solid #1a1a1a;
    text-align: center;
}

.progress-text {
    font-size: 1.2rem;
    font-weight: 700;
}

#progressPercent {
    color: #1a1a1a;
}

.components-section {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 2px solid #1a1a1a;
}

.components-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#componentsOutput {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.component {
    padding: 1rem;
    background: #f5f5f5;
    border-left: 4px solid #1a1a1a;
}

.component-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.player-section {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 2px solid #1a1a1a;
}

.player-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#audioPlayer {
    width: 100%;
    margin-bottom: 1rem;
}

.regenerate-btn {
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.progress-section {
    animation: pulse 2s infinite;
}

