/* ESTILOS LIMPIOS Y STANDALONE - SIN INTERFERENCIAS DEL TEMA */
:root {
    --gold: #d4af37;
    --gold-dim: rgba(212, 175, 55, 0.2);
    --bg-dark: #0d0d0d;
    --bg-card: #151515;
    --text-main: #e0e0e0;
    --text-muted: #888;
    --red: #ff4d4d;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
}

#app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-titles h1 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 2.8rem;
    margin: 0 0 0.5rem 0;
}

.header-titles h2 {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    font-weight: 300;
}

.diagnostic-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.diagnostic-area button {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

.diagnostic-area button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid #333;
    font-size: 0.9rem;
    color: #aaa;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--red);
    border-radius: 50%;
}

.dot.active {
    background-color: #4CAF50;
    box-shadow: 0 0 8px #4CAF50;
}

.card {
    background: var(--bg-card);
    border: 1px solid #222;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.recorder-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.record-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.record-btn:hover {
    background: var(--gold-dim);
    transform: scale(1.05);
}

.record-icon {
    width: 30px;
    height: 30px;
    background-color: var(--red);
    border-radius: 50%;
    transition: all 0.3s;
}

.recording {
    border-color: var(--red);
}

.recording .record-icon {
    border-radius: 8px;
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

.visualizer {
    width: 100%;
    height: 140px;
    background: #080808;
    border-radius: 12px;
    border: 1px solid #222;
    overflow: hidden;
}

#waveform-canvas {
    width: 100%;
    height: 100%;
}

#recording-timer {
    font-family: monospace;
    font-size: 3rem;
    color: var(--gold);
    margin: 0;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary {
    background: var(--gold);
    color: #000;
    border: none;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #555;
}

.btn-primary:hover:not(:disabled) {
    background: #e5c358;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #666;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hidden {
    display: none !important;
}

.results-header {
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.results-header h3 {
    color: var(--gold);
    font-size: 2rem;
    margin: 0 0 1.5rem 0;
    font-family: 'Playfair Display', serif;
}

.export-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.export-buttons .btn-secondary {
    padding: 0.6rem 2rem;
    font-size: 0.9rem;
}

#notation-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    min-height: 400px;
}

.audio-playback {
    margin-top: 2rem;
    border-top: 1px solid #333;
    padding-top: 1.5rem;
}

.audio-playback p {
    margin-top: 0;
    color: #888;
}

.audio-playback audio {
    width: 100%;
    border-radius: 30px;
}

.app-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}