:root {
    --bg-dark: #0f172a;
    --bg-black: #000000;
    --panel-bg: rgba(30, 41, 59, 0.5); /* slate-800 com 50% de opacidade */
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-black) 100%);
    color: var(--text-primary);
}

.glass-panel {
    background: var(--panel-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem; /* 24px */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.tuner-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle, #27334a, #111827);
    box-shadow: 0 0 40px rgba(0,0,0,0.6), inset 0 0 15px rgba(0,0,0,0.9);
    transition: border-color 0.3s ease, width 0.3s ease, height 0.3s ease;
}
@media (min-width: 640px) {
    .tuner-circle {
        width: 300px;
        height: 300px;
    }
}
.tuner-pointer {
    width: 4px;
    height: 110px;
    background-color: #f3f4f6;
    position: absolute;
    bottom: 50%;
    left: calc(50% - 2px);
    transform-origin: bottom center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease-out;
    border-radius: 2px 2px 0 0;
    z-index: 10;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
 @media (min-width: 640px) {
    .tuner-pointer {
        height: 120px;
    }
}
.tuner-pointer-pivot {
    width: 20px;
    height: 20px;
    background-color: #f3f4f6;
    border-radius: 50%;
    position: absolute;
    bottom: calc(50% - 10px);
    left: calc(50% - 10px);
    z-index: 11;
}
.tuner-markings {
     position: absolute;
     top: 40px;
     width: calc(100% - 80px);
     display: flex;
     justify-content: space-between;
     font-size: 14px;
     color: var(--text-secondary);
     font-weight: bold;
}
.border-in-tune { border-color: var(--accent-amber); }
.border-out-of-tune { border-color: var(--accent-red); }
.border-neutral { border-color: #4b5563; }

.loader { border: 4px solid #f3f3f3; border-top: 4px solid #3b82f6; border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#vu-meter-bar { transition: width 0.1s ease-out; }

.ad-placeholder {
    background-color: rgba(0,0,0,0.2);
    border: 2px dashed var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* Google AdSense block styling */
.adsbygoogle {
    display: block;
}

.primary-btn {
    background: linear-gradient(to right, #f59e0b, #f97316);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(249, 115, 22, 0.4);
}
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(249, 115, 22, 0.5);
}
.secondary-btn {
     background-color: rgba(56, 189, 248, 0.1);
     border: 1px solid rgba(56, 189, 248, 0.4);
     color: #7dd3fc;
     transition: all 0.3s ease;
}
.secondary-btn:hover {
    background-color: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.6);
}
.select-input {
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
}

/* Metronome Styles */
.metronome-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #334155; /* slate-700 */
    transition: all 0.1s ease-in-out;
}
.metronome-indicator.beat {
    transform: scale(1.2);
    background-color: var(--accent-amber);
    box-shadow: 0 0 10px var(--accent-amber);
}
 .metronome-indicator.accent {
    background-color: #60a5fa; /* blue-400 */
    box-shadow: 0 0 10px #60a5fa;
}
#metronome-panel-main .metronome-indicator {
     width: 40px;
     height: 40px;
     margin: 0 auto 1rem;
}


/* Fretboard Styles */
.fretboard-wrapper { background-color: #374151; padding: 10px 20px 20px 20px; border-radius: 8px; overflow-x: auto; }
.fretboard { position: relative; background-color: #1f2937; border-radius: 5px; height: 130px; width: 100%; }
.dots-container { position: absolute; inset: 0; }
.string { position: absolute; width: 100%; height: 2px; background-color: #9ca3af; }
.fret { position: absolute; height: 100%; width: 4px; background-color: #6b7280; }
.fret-marker { position: absolute; width: 10px; height: 10px; background-color: #586170; border-radius: 50%; transform: translateX(-50%); }
.fret-numbers { display: flex; width: 100%; }
.fret-numbers span { flex: 1; text-align: center; font-size: 0.75rem; }
.finger-dot { position: absolute; width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); color: black; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; }
.dot-root { background-color: var(--accent-amber); }
.dot-pos1 { background-color: #3b82f6; } .dot-pos2 { background-color: #22c55e; } .dot-pos3 { background-color: #a855f7; } .dot-pos4 { background-color: #f97316; }
.chord-diagram-wrapper { display: inline-flex; flex-direction: column; align-items: center; background-color: #374151; padding: 0.75rem; border-radius: 8px; }
#chord-diagrams-container { 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
.chord-name { font-weight: bold; font-size: 1.1rem; margin-bottom: 0.5rem; }
#fretboard-container.mirrored .fretboard { transform: scaleX(-1); }
#fretboard-container.mirrored .finger-dot { transform: translate(-50%, -50%) scaleX(-1); }
#fretboard-container.mirrored .fret-numbers { flex-direction: row-reverse; }

/* Oculta a segunda parte do braço em telas grandes */
#fretboard-wrapper-2 { display: none; }
/* Em telas de celular (até 768px), mostra as duas partes e ajusta o layout */
@media (max-width: 768px) {
    #fretboard-wrapper-1, #fretboard-wrapper-2 {
        display: block;
        overflow-x: hidden; /* Remove scroll horizontal no mobile */
    }
    #fretboard-container {
        display: flex;
        flex-direction: column;
    }
}
 /* Em telas grandes, mostra apenas o primeiro braço (que conterá todas as casas) */
@media (min-width: 769px) {
    #fretboard-wrapper-1 {
        display: block;
    }
}