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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    display: flex;
    align-items: center;
    background-color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.logo-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
}

.logo-ai {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    margin-left: 0.2rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #8B2C2C;
}

.contact-btn {
    background-color: #8B2C2C;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #722424;
}

/* Main Content */
main {
    padding: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.page-header p {
    font-size: 1.1rem;
    color: #cccccc;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tool-card {
    background-color: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-card:hover {
    background-color: #333333;
    border-color: #8B2C2C;
    transform: translateY(-2px);
}

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

.tool-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

.tool-status {
    background-color: #8B2C2C;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tool-status.beginner {
    background-color: #4CAF50;
}

.tool-status.intermediate {
    background-color: #FF9800;
}

.tool-status.practice {
    background-color: #2196F3;
}

.tool-status.theory {
    background-color: #9C27B0;
}

.tool-status.progress {
    background-color: #00BCD4;
}

.tool-status.utility {
    background-color: #607D8B;
}

.tool-card p {
    color: #cccccc;
    font-size: 0.95rem;
}

/* Tool Content Areas */
.tool-content {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
}

.tool-content.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-panel {
    background-color: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #8B2C2C;
    border-radius: 12px 12px 0 0;
}

.panel-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-tool {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-tool:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Metronome Styles */
.metronome-container {
    padding: 2rem;
}

.metronome-display {
    text-align: center;
    margin-bottom: 2rem;
}

.beat-indicator {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #333333;
    border: 3px solid #555555;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
}

.beat-indicator.active {
    background-color: #8B2C2C;
    border-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 44, 44, 0.6);
}

.beat-indicator.accent {
    background-color: #FF6B35;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

.tempo-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
}

.metronome-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.tempo-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tempo-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #8B2C2C;
    background-color: transparent;
    color: #8B2C2C;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tempo-btn:hover {
    background-color: #8B2C2C;
    color: #ffffff;
}

.tempo-slider {
    width: 200px;
    height: 6px;
    border-radius: 3px;
    background-color: #333333;
    outline: none;
    appearance: none;
}

.tempo-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #8B2C2C;
    cursor: pointer;
}

.tempo-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #8B2C2C;
    cursor: pointer;
    border: none;
}

.main-controls {
    display: flex;
    gap: 1rem;
}

.play-btn, .reset-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn {
    background-color: #4CAF50;
    color: #ffffff;
}

.play-btn:hover {
    background-color: #45a049;
}

.play-btn.playing {
    background-color: #f44336;
}

.play-btn.playing:hover {
    background-color: #da190b;
}

.reset-btn {
    background-color: #333333;
    color: #ffffff;
}

.reset-btn:hover {
    background-color: #555555;
}

.time-signature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-signature label {
    font-weight: 600;
    color: #ffffff;
}

.time-signature select {
    padding: 0.5rem;
    border: 1px solid #555555;
    border-radius: 4px;
    background-color: #333333;
    color: #ffffff;
    font-size: 1rem;
}

/* Speed Trainer Styles */
.speed-trainer {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.speed-trainer h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 1.3rem;
}

.trainer-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.input-group input {
    padding: 0.5rem;
    border: 1px solid #555555;
    border-radius: 4px;
    background-color: #333333;
    color: #ffffff;
    font-size: 1rem;
}

.trainer-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    background-color: #8B2C2C;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
}

.trainer-btn:hover {
    background-color: #722424;
}

.trainer-btn.active {
    background-color: #f44336;
}

.trainer-status {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem;
    background-color: #333333;
    border-radius: 6px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

/* Tuner Styles */
.tuner-container {
    padding: 2rem;
}

.tuner-display {
    text-align: center;
    margin-bottom: 2rem;
}

.note-display {
    font-size: 4rem;
    font-weight: bold;
    color: #8B2C2C;
    margin-bottom: 0.5rem;
}

.frequency-display {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

.tuning-meter {
    position: relative;
    width: 300px;
    height: 60px;
    margin: 0 auto 2rem;
    background-color: #333333;
    border-radius: 30px;
    overflow: hidden;
}

.meter-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.meter-mark {
    width: 2px;
    height: 20px;
    background-color: #666666;
}

.meter-mark.center {
    height: 30px;
    background-color: #4CAF50;
    width: 3px;
}

.meter-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 40px;
    background-color: #8B2C2C;
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.2s ease;
    transform-origin: center;
}

.tuning-status {
    font-size: 1.1rem;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 2rem;
}

.tuner-controls {
    text-align: center;
}

.tuner-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    background-color: #8B2C2C;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 2rem;
}

.tuner-btn:hover {
    background-color: #722424;
}

.tuner-btn.active {
    background-color: #4CAF50;
}

.string-reference {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
}

.string-reference h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.string-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.string-ref {
    background-color: #333333;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    color: #cccccc;
}

/* Coming Soon Placeholder */
.coming-soon {
    padding: 4rem 2rem;
    text-align: center;
}

.coming-soon h3 {
    color: #8B2C2C;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.coming-soon p {
    color: #cccccc;
    font-size: 1.1rem;
}

/* Basic Chord Visualizer Styles */
.chord-visualizer-container {
    padding: 2rem;
}

.chord-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.control-group label {
    font-weight: 600;
    color: #ffffff;
}

.control-group select,
.control-group input {
    padding: 0.5rem;
    border: 1px solid #555555;
    border-radius: 4px;
    background-color: #333333;
    color: #ffffff;
    font-size: 1rem;
}

.chord-info-display {
    text-align: center;
    margin-bottom: 2rem;
}

.chord-info-display h3 {
    color: #8B2C2C;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.chord-info-display p {
    color: #cccccc;
    font-size: 1.1rem;
}

.fretboard-basic {
    position: relative;
    background: linear-gradient(90deg, #deb887 0%, #cd853f 20%, #d2691e 50%, #cd853f 80%, #deb887 100%);
    border-radius: 8px;
    padding: 20px 10px;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nut-basic {
    position: absolute;
    left: 8px;
    top: 15px;
    bottom: 15px;
    width: 6px;
    background: #2c1810;
    border-radius: 3px;
}

.nut-basic::after {
    content: '';
    position: absolute;
    right: -72px;
    top: -5px;
    bottom: -5px;
    width: 3px;
    background: #1a0f08;
    border-radius: 1px;
}

.string-labels {
    position: absolute;
    left: -30px;
    top: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.string-label {
    background: #8B2C2C;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.frets-basic {
    display: flex;
    margin-left: 20px;
}

.fret-basic {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 80px;
    height: 200px;
    position: relative;
    border-right: 3px solid #8b4513;
}

.fret-basic[data-fret="0"] {
    width: 60px;
    border-right: none;
}

.fret-number-basic {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: bold;
    color: #8b4513;
    background: rgba(244, 244, 244, 0.9);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.string-basic {
    height: 3px;
    background: linear-gradient(90deg, #c0c0c0 0%, #808080 50%, #c0c0c0 100%);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.string-basic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.string-basic.fretted::before {
    background: #8B2C2C;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(139, 44, 44, 0.6);
}

.string-basic.open::before {
    background: #4CAF50;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}

.string-basic.muted::before {
    background: #f44336;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.6);
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.chord-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(42, 42, 42, 0.5);
    border-radius: 8px;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.legend-dot.fretted {
    background: #8B2C2C;
}

.legend-dot.open {
    background: #4CAF50;
}

.legend-dot.muted {
    background: #f44336;
    position: relative;
}

.legend-dot.muted::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

/* Scale Visualizer Styles */
.scale-visualizer-container {
    padding: 2rem;
}

.scale-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.scale-info-display {
    text-align: center;
    margin-bottom: 2rem;
}

.scale-info-display h3 {
    color: #8B2C2C;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.scale-fretboard-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.scale-fretboard-display {
    overflow-x: auto;
}

.scale-fretboard-basic {
    position: relative;
    background: linear-gradient(90deg, #deb887 0%, #cd853f 20%, #d2691e 50%, #cd853f 80%, #deb887 100%);
    border-radius: 8px;
    padding: 20px 10px;
    margin: 0 auto;
    min-width: 600px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scale-note {
    background: #8B2C2C !important;
    border: 2px solid #fff !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.scale-root {
    background: #FF6B35 !important;
    border: 2px solid #fff !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.scale-note-active {
    background: #8B2C2C !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 10px rgba(139, 44, 44, 0.6) !important;
}

.scale-note-root {
    background: #FF6B35 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.6) !important;
}

/* CAGED System Styles */
.caged-container {
    padding: 2rem;
}

.caged-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.caged-info {
    text-align: center;
    margin-bottom: 2rem;
}

.caged-info h3 {
    color: #8B2C2C;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.caged-fretboard-container {
    overflow-x: auto;
    padding: 1rem 0;
}

.caged-fretboard {
    min-width: 1200px;
    background: linear-gradient(90deg, #deb887 0%, #cd853f 20%, #d2691e 50%, #cd853f 80%, #deb887 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Chord Progressions Styles */
.progressions-container {
    padding: 2rem;
}

.progression-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progression-display {
    text-align: center;
    margin-bottom: 2rem;
}

.progression-display h3 {
    color: #8B2C2C;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.chord-sequence {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.chord-box {
    background: #333333;
    border: 2px solid #555555;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

.chord-box.active {
    background: #8B2C2C;
    border-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 44, 44, 0.6);
}

.progression-controls-playback {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progression-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progression-btn {
    background-color: #8B2C2C;
    color: #ffffff;
}

.progression-btn:hover {
    background-color: #722424;
}

.progression-btn.secondary {
    background-color: #333333;
    color: #ffffff;
}

.progression-btn.secondary:hover {
    background-color: #555555;
}

.current-chord-display {
    text-align: center;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1rem;
}

.current-chord-display h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

#currentChordName {
    font-size: 2rem;
    font-weight: bold;
    color: #8B2C2C;
}

/* Note Finder Styles */
.note-finder-container {
    padding: 2rem;
}

.note-finder-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.note-finder-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
}

.stat {
    text-align: center;
    color: #ffffff;
    font-weight: 600;
}

.note-finder-fretboard {
    min-width: 800px;
    background: linear-gradient(90deg, #deb887 0%, #cd853f 20%, #d2691e 50%, #cd853f 80%, #deb887 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.note-finder-question {
    text-align: center;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
}

.note-finder-question h3 {
    color: #8B2C2C;
    margin-bottom: 1.5rem;
}

.note-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.note-option {
    background: #333333;
    border: 2px solid #555555;
    border-radius: 6px;
    padding: 0.75rem;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.note-option:hover {
    background: #555555;
    border-color: #8B2C2C;
}

.note-option.correct {
    background: #4CAF50;
    border-color: #ffffff;
}

.note-option.incorrect {
    background: #f44336;
    border-color: #ffffff;
}

/* Rhythm Trainer Styles */
.rhythm-trainer-container {
    padding: 2rem;
}

.rhythm-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.rhythm-display {
    text-align: center;
    margin-bottom: 2rem;
}

.rhythm-display h3 {
    color: #8B2C2C;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.rhythm-notation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.beat-marker {
    width: 60px;
    height: 60px;
    border: 3px solid #555555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    background: #333333;
    transition: all 0.2s ease;
}

.beat-marker.active {
    background: #8B2C2C;
    border-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 44, 44, 0.6);
}

.rhythm-controls-playback {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rhythm-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #8B2C2C;
    color: #ffffff;
}

.rhythm-btn:hover {
    background-color: #722424;
}

.rhythm-btn.secondary {
    background-color: #333333;
}

.rhythm-btn.secondary:hover {
    background-color: #555555;
}

.rhythm-visual {
    text-align: center;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strum-indicator {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #333333;
    border: 3px solid #555555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    transition: all 0.1s ease;
}

.strum-indicator.down {
    background: #8B2C2C;
    border-color: #ffffff;
    transform: scale(1.1);
}

.strum-indicator.up {
    background: #4CAF50;
    border-color: #ffffff;
    transform: scale(1.1);
}

/* Practice Log Styles */
.practice-log-container {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.log-entry-form {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.log-entry-form h3 {
    color: #8B2C2C;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #555555;
    border-radius: 4px;
    background-color: #333333;
    color: #ffffff;
    font-size: 1rem;
}

.activity-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.activity-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.practice-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    background-color: #8B2C2C;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.practice-btn:hover {
    background-color: #722424;
}

.practice-stats {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.practice-stats h3 {
    color: #8B2C2C;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: #333333;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #8B2C2C;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cccccc;
    font-size: 0.9rem;
}

.practice-history {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
}

.practice-history h3 {
    color: #8B2C2C;
    margin-bottom: 1.5rem;
    text-align: center;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    background: #333333;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #8B2C2C;
}

.history-date {
    color: #8B2C2C;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.history-duration {
    color: #ffffff;
    font-weight: 600;
}

.history-activities {
    color: #cccccc;
    margin: 0.5rem 0;
}

.history-notes {
    color: #cccccc;
    font-style: italic;
}

.no-sessions {
    text-align: center;
    color: #cccccc;
    padding: 2rem;
}

/* Capo Calculator Styles */
.capo-calculator-container {
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.capo-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.capo-result {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.capo-result h3 {
    color: #8B2C2C;
    margin-bottom: 1.5rem;
}

.chord-transposition {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.chord-transposition h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.chord-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chord {
    background: #333333;
    border: 2px solid #555555;
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
    font-weight: bold;
    color: #ffffff;
}

.arrow {
    font-size: 2rem;
    color: #8B2C2C;
    font-weight: bold;
}

.capo-reference {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
}

.capo-reference h4 {
    color: #8B2C2C;
    margin-bottom: 1rem;
    text-align: center;
}

.capo-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.capo-suggestion {
    background: #333333;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.capo-suggestion-fret {
    color: #8B2C2C;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.capo-suggestion-result {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    main {
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tool-content {
        padding: 1rem;
    }

    .tool-panel {
        max-height: 95vh;
    }

    .metronome-container,
    .tuner-container,
    .chord-visualizer-container,
    .scale-visualizer-container,
    .caged-container,
    .progressions-container,
    .note-finder-container,
    .rhythm-trainer-container,
    .practice-log-container,
    .capo-calculator-container {
        padding: 1rem;
    }

    .tempo-controls,
    .chord-controls,
    .scale-controls,
    .caged-controls,
    .progression-controls,
    .note-finder-controls,
    .rhythm-controls,
    .capo-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .tempo-slider {
        width: 150px;
    }

    .trainer-controls {
        grid-template-columns: 1fr;
    }

    .tuning-meter {
        width: 250px;
    }

    .fretboard-basic,
    .scale-fretboard,
    .caged-fretboard,
    .note-finder-fretboard {
        transform: scale(0.8);
    }

    .chord-sequence {
        flex-wrap: wrap;
    }

    .chord-transposition {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}