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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

main section {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.hidden {
    display: none;
}

/* Song Selection */
.song-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#song-list {
    flex: 1;
    min-width: 250px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

button {
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover {
    background: #2980b9;
}

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

.song-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

/* Chord Progression Game */
.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

#user-guess {
    margin-bottom: 20px;
}

#chord-guess {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 10px;
}

#progression-answer, #hint-display {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

#hint-display {
    background: #fff3cd;
}

/* Practice Controls */
.practice-controls {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-weight: bold;
    color: #2c3e50;
}

.control-group select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

/* Fretboard */
#fretboard-container {
    margin-bottom: 30px;
}

#fretboard {
    margin: 0 auto;
    padding: 0;
}

.fret {
    background: #deb887;
    border: 1px solid #8b4513;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.fret:hover {
    background: #f4a460;
}

.fret.string-1 { border-bottom: 3px solid #333; }
.fret.string-2 { border-bottom: 2px solid #333; }
.fret.string-3 { border-bottom: 2px solid #333; }
.fret.string-4 { border-bottom: 2px solid #333; }
.fret.string-5 { border-bottom: 2px solid #333; }
.fret.string-6 { border-bottom: 3px solid #333; }

.note {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 11px;
    color: white;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.note.root {
    background: #e74c3c;
}

.note.third {
    background: #ff69b4;
}

.note.scale {
    background: #3498db;
}

.note.chord {
    background: #f39c12;
}

.note.riff {
    background: #9b59b6;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

/* Fret Numbers */
.fret-numbers {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 2px;
    margin-top: 5px;
    padding: 0 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: #8b4513;
    border-radius: 0 0 8px 8px;
}

.fret-number {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    padding: 4px 2px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 4px 4px;
}

.fret-number:first-child {
    width: 30px;
    background: rgba(139, 69, 19, 0.8);
}

/* Interactive Fretboard */
#interactive-fretboard-section {
    margin: 30px 0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.interactive-fretboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.interactive-fretboard-header h3 {
    margin: 0;
    color: #2c3e50;
}

.interactive-controls {
    display: flex;
    gap: 10px;
}

.interactive-controls button {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.chord-highlighting-controls {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.chord-highlighting-controls h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.chord-info {
    margin-bottom: 15px;
}

.chord-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.chord-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.triads-section h5, .sevenths-section h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
}

.chord-buttons-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chord-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    border: 2px solid #3498db;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    background-color: #f8f9fa;
    color: #2c3e50;
    transition: all 0.2s ease;
    min-width: 45px;
}

.chord-btn:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-1px);
}

.chord-btn.active {
    background-color: #2ecc71;
    border-color: #27ae60;
    color: white;
}

.chord-btn.major {
    border-color: #3498db;
}

.chord-btn.minor {
    border-color: #e74c3c;
}

.chord-btn.diminished {
    border-color: #f39c12;
}

.chord-btn.seventh {
    border-color: #9b59b6;
}

.clear-btn {
    padding: 8px 16px;
    background-color: #e2e8f0;
    border: 2px solid #a0aec0;
    color: #2d3748;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.clear-btn:hover {
    background-color: #cbd5e0;
    transform: translateY(-1px);
}

/* Chord highlighting styles */
.chord-highlight {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 10;
}

.root-highlight {
    background-color: #ff6b6b !important;
    border: 2px solid #e53e3e;
}

.third-highlight {
    background-color: #ffc0cb !important;
    border: 2px solid #db7093;
    color: #2d3748 !important;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
}

.fifth-highlight {
    background-color: #68d391 !important;
    border: 2px solid #38a169;
}

.interactive-fret {
    position: relative;
}

.interactive-fret.chord-dimmed {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.interactive-fret.chord-highlighted {
    opacity: 1;
    transform: scale(1.05);
    z-index: 5;
    transition: all 0.3s ease;
}

#interactive-fretboard-container {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

#interactive-fretboard {
    display: grid;
    grid-template-columns: repeat(26, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 1px;
    background: #8b4513;
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
    max-width: 100%;
}

.interactive-fret {
    background: #deb887;
    border: 1px solid #8b4513;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    min-width: 30px;
    position: relative;
    overflow: visible;
    cursor: pointer;
    transition: background-color 0.2s;
}

.interactive-fret:hover {
    background: #f4a460;
}

.interactive-fret.has-note {
    background: #b8860b;
}

.interactive-note {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 11px;
    color: white;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: #3498db; /* Default blue for user-added notes */
}

/* Favorites Page */
#favorites-page {
    padding: 20px;
}

.favorites-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

#favorites-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.favorite-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.favorite-item h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    text-align: center;
}

.favorite-fretboard {
    display: grid;
    grid-template-columns: repeat(26, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 1px;
    background: #8b4513;
    padding: 8px;
    border-radius: 6px;
    transform: scale(0.7);
    transform-origin: center;
    margin: -20px 0;
}

.favorite-fret {
    background: #deb887;
    border: 1px solid #8b4513;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    min-width: 20px;
    position: relative;
}

.favorite-note {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 9px;
    color: white;
    position: relative;
}

.favorite-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.favorite-controls button {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Individual Chord Boards */
#individual-chord-boards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.chord-board {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    width: 100%;
    clear: both;
}

.chord-board .main-fretboard-grid {
    overflow-x: auto;
    width: 100%;
    min-width: 100%;
    overflow-y: visible;
}

@media (max-width: 1400px) {
    .chord-board .main-fretboard-grid {
        transform: scale(0.8);
        transform-origin: left top;
    }
}

@media (max-width: 1200px) {
    .chord-board .main-fretboard-grid {
        transform: scale(0.7);
        transform-origin: left top;
    }
}

@media (max-width: 900px) {
    .chord-board .main-fretboard-grid {
        transform: scale(0.6);
        transform-origin: left top;
    }
}

.chord-board h4 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.mini-fretboard {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 1px;
    background: #8b4513;
    padding: 5px;
    border-radius: 4px;
}

.main-fretboard-grid {
    display: grid;
    grid-template-columns: repeat(26, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 1px;
    background: #8b4513;
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
    max-width: 100%;
}

.main-fretboard-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    margin-bottom: 20px;
}

.mini-fret {
    background: #deb887;
    border: 1px solid #8b4513;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    position: relative;
}

.main-fret {
    background: #deb887;
    border: 1px solid #8b4513;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    min-width: 30px;
    position: relative;
    overflow: visible;
}

.mini-note {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    color: white;
}

/* Freestyle Mode */
.freestyle-controls {
    display: flex;
    gap: 20px;
    align-items: end;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

#chord-palette {
    margin-bottom: 25px;
}

#chord-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.chord-button {
    padding: 12px 8px;
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    color: #2c3e50;
}

.chord-button:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chord-button.major {
    border-color: #3498db;
}

.chord-button.minor {
    border-color: #e74c3c;
}

.chord-button.seventh {
    border-color: #9b59b6;
    background: #f8f9fa;
    color: #2c3e50;
}

.chord-button.seventh:hover {
    background: #9b59b6;
}

.chord-button.in-key {
    background: #e8f5e8;
    border-color: #27ae60;
    color: #2c3e50;
}

.chord-button.in-key:hover {
    background: #27ae60;
}

#progression-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px dashed #bdc3c7;
    margin-bottom: 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#progression-display.has-chords {
    border-color: #3498db;
    background: #ebf3fd;
}

.progression-chord {
    display: inline-block;
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border-radius: 6px;
    margin: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.progression-chord:hover {
    background: #e74c3c;
    transform: scale(1.05);
}

.progression-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#progression-display p {
    color: #7f8c8d;
    font-style: italic;
}

/* Chord Categories */
.chord-category {
    margin-bottom: 20px;
}

.chord-category h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.chord-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Debug Panel */
#debug-panel {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.debug-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.debug-controls button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.debug-controls button:hover {
    background: #2980b9;
}

#debug-output {
    background: #34495e;
    padding: 15px;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
}

#debug-console {
    color: #ecf0f1;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin: 0;
    white-space: pre-wrap;
}

/* Song Editor Page */
#song-editor-page {
    padding: 20px;
}

.song-editor-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

#editable-songs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.editable-song-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s;
}

.editable-song-item:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

.editable-song-item h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.editable-song-item .song-details {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.editable-song-item .youtube-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 8px;
}

.youtube-status.valid {
    background: #d4edda;
    color: #155724;
}

.youtube-status.invalid {
    background: #f8d7da;
    color: #721c24;
}

#song-edit-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    margin-top: 20px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-row label {
    min-width: 120px;
    font-weight: bold;
    color: #2c3e50;
}

.form-row input,
.form-row select {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.form-row input:focus,
.form-row select:focus {
    border-color: #3498db;
    outline: none;
}

#test-youtube {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

#test-youtube:hover {
    background: #138496;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.form-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

#save-song {
    background: #28a745;
    color: white;
}

#save-song:hover {
    background: #218838;
}

#cancel-edit {
    background: #6c757d;
    color: white;
}

#cancel-edit:hover {
    background: #545b62;
}

#delete-song {
    background: #dc3545;
    color: white;
}

#delete-song:hover {
    background: #c82333;
}

.import-export-area {
    margin-top: 20px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 8px;
}

#import-textarea {
    width: 100%;
    min-height: 200px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .song-controls {
        flex-direction: column;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .practice-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    #fretboard {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .fret {
        min-height: 30px;
    }
    
    .note {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* Star Practice Styles */
.star-practice-controls {
    margin-bottom: 20px;
}

.artist-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.artist-tab {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.artist-tab:hover {
    color: #2c3e50;
    background: rgba(52, 152, 219, 0.1);
}

.artist-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.artist-lesson {
    display: none;
}

.artist-lesson.active {
    display: block;
}

.artist-lesson h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.lesson-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #3498db;
}

.lesson-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.lesson-info strong {
    color: #2c3e50;
}

.youtube-links {
    margin-bottom: 25px;
}

.youtube-links h4 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.youtube-link {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.youtube-link:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
}

.chord-progression {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #27ae60;
}

.chord-progression h4 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.chords {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.play-backing-track {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.play-backing-track:hover {
    background: #229954;
}

.technique-breakdown {
    margin-top: 30px;
}

.technique-breakdown h4 {
    color: #8e44ad;
    font-size: 1.3rem;
    margin-bottom: 10px;
    margin-top: 25px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.technique-breakdown p {
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
}

.technique-tips {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border-left: 4px solid #f39c12;
}

.technique-tips h5 {
    color: #f39c12;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.technique-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.technique-tips li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    color: #333;
}

.technique-tips li:before {
    content: "♪";
    color: #f39c12;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.technique-tips strong {
    color: #2c3e50;
    font-weight: 600;
}

.fretboard-technique {
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.technique-fretboard {
    background: #8B4513 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.technique-fret {
    background: #DEB887 !important;
    border: 1px solid #8B4513 !important;
    border-radius: 2px;
    min-height: 25px;
}

.technique-note {
    font-size: 11px !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

/* Responsive design for Star Practice */
@media (max-width: 768px) {
    .artist-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .artist-tab {
        margin: 5px 0;
        width: 200px;
        text-align: center;
    }
    
    .technique-fretboard {
        grid-template-columns: repeat(12, 25px) !important;
        padding: 10px !important;
    }
    
    .youtube-link {
        display: block;
        text-align: center;
        margin: 10px 0;
    }
    
    .chords {
        font-size: 1.1rem;
    }
}

/* Student Customization Sections */
.student-sections {
    margin-top: 40px;
    border-top: 3px solid #e0e0e0;
    padding-top: 30px;
}

.student-sections > div {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.student-sections h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 10px;
}

/* YouTube References Section */
.youtube-input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.youtube-url-input {
    flex: 2;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    min-width: 200px;
}

.youtube-title-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    min-width: 150px;
}

.add-youtube-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.add-youtube-btn:hover {
    background: #c0392b;
}

.custom-youtube-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-youtube-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #e74c3c;
}

.custom-youtube-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    flex: 1;
}

.custom-youtube-link:hover {
    text-decoration: underline;
}

.remove-youtube-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

/* Personal Notes Section */
.practice-notes-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.save-notes-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.save-notes-btn:hover {
    background: #229954;
}

/* Fretboard Favorites Section */
.favorites-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.favorites-dropdown {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    min-width: 200px;
}

.load-favorite-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.load-favorite-btn:hover {
    background: #2980b9;
}

.favorite-fretboards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.favorite-fretboard-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.favorite-fretboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.favorite-fretboard-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

.favorite-fretboard-controls {
    display: flex;
    gap: 10px;
}

.edit-favorite-btn, .save-favorite-btn, .delete-favorite-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.edit-favorite-btn {
    background: #f39c12;
    color: white;
}

.edit-favorite-btn:hover {
    background: #e67e22;
}

.save-favorite-btn {
    background: #27ae60;
    color: white;
}

.save-favorite-btn:hover {
    background: #229954;
}

.delete-favorite-btn {
    background: #e74c3c;
    color: white;
}

.delete-favorite-btn:hover {
    background: #c0392b;
}

/* Responsive design for student sections */
@media (max-width: 768px) {
    .youtube-input-section {
        flex-direction: column;
    }
    
    .youtube-url-input, .youtube-title-input {
        min-width: unset;
    }
    
    .favorites-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .custom-youtube-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Ear Practice Styles */
.ear-practice-controls {
    margin-bottom: 20px;
}

.practice-mode-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.mode-tab {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.mode-tab:hover {
    color: #2c3e50;
    background: rgba(52, 152, 219, 0.1);
}

.mode-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.practice-mode {
    display: none;
}

.practice-mode.active {
    display: block;
}

.practice-mode h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
}

.practice-mode p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

/* Octave Controls */
.octave-controls {
    text-align: center;
    margin-bottom: 25px;
}

.octave-controls h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.octave-btn {
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.octave-btn:hover {
    background: #d5dbdb;
    border-color: #95a5a6;
}

.octave-btn.active {
    background: #3498db;
    border-color: #2980b9;
    color: white;
}

/* Note Game Fretboard Layout */
.note-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 2px solid #3498db;
}

.note-game-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.key-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-controls label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
}

.key-selector {
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: bold;
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.key-selector:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
}

.key-selector:focus {
    outline: none;
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

/* Note game header section above fretboard */
.note-game-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    width: 100%;
    box-sizing: border-box;
}

.note-game-title {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.note-game-key-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Ensure note game containers use full width */
#note-buttons-container,
#note-game-buttons {
    width: 100%;
    display: block;
}

.note-game-fretboard-container {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.note-game-fretboard {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 1px;
    background: #8b4513;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    /* Grid columns will be set dynamically in JavaScript */
    /* Remove overflow and max-width to prevent scrollbars */
}

.note-game-fret {
    background: #deb887;
    border: 1px solid #8b4513;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    /* Remove min-width to allow responsive sizing */
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
    overflow: visible;
}

.note-game-fret:hover {
    background: #f4a460;
}

.note-game-fret.has-note {
    background: #b8860b;
}

.note-game-note {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: white;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.note-game-note:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.note-game-note.root-note {
    background: #e74c3c !important;
    border: 2px solid #c0392b;
}

.note-game-note.diatonic-note {
    background: #3498db !important;
    border: 2px solid #2980b9;
}

/* Note: Grid columns are set dynamically in JavaScript based on fret range */

/* Legacy note buttons grid - kept for backward compatibility */
.note-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.note-btn {
    width: 60px;
    height: 60px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    background: #ecf0f1;
    color: #2c3e50;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.note-btn:hover {
    background: #3498db;
    color: white;
    border-color: #2980b9;
    transform: scale(1.1);
}

.note-btn.correct {
    background: #27ae60;
    color: white;
    border-color: #229954;
    animation: correctPulse 0.5s ease;
}

.note-btn.incorrect {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
    animation: shake 0.5s ease;
}

.note-btn.playing {
    background: #f39c12;
    color: white;
    border-color: #e67e22;
    animation: pulse 2s infinite;
}

/* Game Controls */
.game-controls {
    text-align: center;
    margin-bottom: 20px;
}

.game-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.game-btn:hover:not(:disabled) {
    background: #2980b9;
}

.game-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Game Info */
.game-info, .chord-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.timer, .progress {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.score {
    font-size: 1.1rem;
    font-weight: bold;
    color: #27ae60;
}

/* Game Feedback */
.game-feedback {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
}

.game-feedback.correct {
    background: #d5f4e6;
    color: #27ae60;
    border: 2px solid #27ae60;
}

.game-feedback.incorrect {
    background: #fadbd8;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

/* Animations */
@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .practice-mode-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .mode-tab {
        margin: 5px 0;
        width: 200px;
        text-align: center;
    }
    
    .note-buttons-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 8px;
        padding: 15px;
    }
    
    .note-btn {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }
    
    .game-info, .chord-game-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .octave-btn {
        display: block;
        margin: 5px auto;
        width: 200px;
    }
}

/* Additional Chord Game Styles */
.game-feedback.hidden {
    display: none;
}

.chord-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.submit-btn {
    margin-top: 15px !important;
    background: #007bff !important;
    color: white !important;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    min-width: 200px;
    white-space: nowrap;
}

.submit-btn:hover {
    background: #0056b3 !important;
}

.submit-btn:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
}

/* Note button states for chord game */
.note-btn.correct {
    background: #28a745 !important;
    color: white;
    animation: correctPulse 0.5s ease-in-out;
}

.note-btn.incorrect {
    background: #dc3545 !important;
    color: white;
    animation: incorrectShake 0.5s ease-in-out;
}

.note-btn.missed {
    background: #ffc107 !important;
    color: #212529;
    animation: missedPulse 0.5s ease-in-out;
}

.note-btn.selected {
    background: #17a2b8 !important;
    color: white;
    transform: scale(1.05);
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@keyframes missedPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Feedback message types */
.game-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.game-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.game-feedback.partial {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.game-feedback.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #bee5eb;
}

/* Pattern Game Styles */
.pattern-game-controls {
    margin: 20px 0;
}

.pattern-settings {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.setting-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.setting-group label {
    font-weight: bold;
    color: #2c3e50;
}

.setting-group select {
    padding: 8px;
    border: 2px solid #3498db;
    border-radius: 5px;
    background: white;
    font-size: 14px;
}

.pattern-game-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.pattern-game-info .progress,
.pattern-game-info .score,
.pattern-game-info .level {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

.pattern-game-info .progress {
    background: #d1ecf1;
    color: #0c5460;
}

.pattern-game-info .score {
    background: #d4edda;
    color: #155724;
}

.pattern-game-info .level {
    background: #fff3cd;
    color: #856404;
}

.pattern-fretboard-wrapper {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 3px solid #3498db;
}

.pattern-guitar-fretboard {
    background: #8B4513;
    border: 4px solid #654321;
    border-radius: 10px;
    padding: 15px;
    margin: 0 auto;
    max-width: 900px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.fretboard-string-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #C0C0C0, #E5E5E5);
    border-radius: 4px;
    padding: 2px;
    border: 1px solid #999;
}

.string-label {
    width: 30px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 8px 4px;
    margin-right: 5px;
    border: 2px solid #34495e;
}

.fret-position {
    width: 60px;
    height: 40px;
    border: 1px solid #bdc3c7;
    background: transparent;
    margin: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.fret-position.pattern-inactive {
    background: rgba(189, 195, 199, 0.3);
    cursor: not-allowed;
}

.fret-position.pattern-available {
    background: linear-gradient(145deg, #3498db, #2980b9);
    border: 2px solid #2471a3;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.fret-position.pattern-available:hover {
    background: linear-gradient(145deg, #5dade2, #3498db);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.fret-position.pattern-related {
    background: #666666;
    color: white;
    border: 1px solid #555555;
    cursor: not-allowed;
    opacity: 0.8;
    font-size: 12px;
    font-weight: bold;
}

.fret-position.pattern-playing {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    border: 3px solid #a93226;
    animation: patternPulse 0.6s ease-in-out;
    transform: scale(1.1);
}

.fret-position.pattern-clicked {
    background: linear-gradient(145deg, #f39c12, #e67e22);
    border: 3px solid #d35400;
    transform: scale(1.05);
}

.fret-position.pattern-correct {
    background: linear-gradient(145deg, #27ae60, #229954);
    border: 3px solid #1e8449;
    animation: patternCorrect 0.4s ease-in-out;
}

/* Fret markers for position reference */
.fret-position.fret-marker::after {
    content: '•';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: #2c3e50;
    font-size: 12px;
}

.fret-position.fret-marker-double::after {
    content: '••';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: #2c3e50;
    font-size: 12px;
    font-weight: bold;
}

@keyframes patternPulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

@keyframes patternCorrect {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Responsive design for pattern game */
@media (max-width: 768px) {
    .pattern-settings {
        flex-direction: column;
        gap: 15px;
    }
    
    .pattern-game-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pattern-guitar-fretboard {
        max-width: 100%;
        overflow-x: auto;
        padding: 10px;
    }
    
    .fret-position {
        width: 45px;
        height: 32px;
        font-size: 10px;
    }
    
    .string-label {
        width: 25px;
        padding: 6px 2px;
        font-size: 12px;
    }
    
    .fretboard-string-row {
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .fret-position {
        width: 35px;
        height: 28px;
        font-size: 9px;
    }
    
    .string-label {
        width: 20px;
        padding: 4px 1px;
        font-size: 10px;
    }
    
    .pattern-guitar-fretboard {
        padding: 8px;
    }
}

/* Chord Game - Block Layout with Clear Separation */
#chord-game-buttons {
    display: block;
    width: 100%;
}

/* Layer 1: Top - Instructions and Key */
.game-top-layer {
    display: block;
    width: 100%;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.game-instructions {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 2px solid rgba(52, 152, 219, 0.2);
    margin-right: 20px;
}

.game-key-display {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    padding: 12px 20px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

/* Layer 2: Middle - Progression Display and Controls */
.game-middle-layer {
    display: block;
    width: 100%;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.progression-section {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-radius: 8px;
    border: 2px solid rgba(46, 204, 113, 0.2);
    margin-right: 20px;
    vertical-align: top;
}

.progression-label {
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

#selected-chords {
    font-size: 1.1rem;
    font-weight: bold;
    color: #27ae60;
    padding: 8px 16px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 6px;
    min-width: 200px;
    border: 1px solid rgba(46, 204, 113, 0.3);
    display: block;
}

.controls-inline {
    display: inline-block;
    vertical-align: top;
    padding-top: 5px;
}

.controls-inline .game-btn {
    display: block;
    padding: 10px 18px;
    font-size: 0.95rem;
    white-space: nowrap;
    min-width: 140px;
    margin-bottom: 8px;
}

/* Layer 3: Bottom - Chord Buttons Only - WELL SEPARATED */
.game-bottom-layer {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 20px;
    border-radius: 10px;
    border: 2px solid rgba(52, 152, 219, 0.2);
    margin-top: 50px;
    clear: both;
}

/* Chord Buttons in Bottom Layer - FIXED POSITION */
.chord-buttons-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: nowrap;
    max-width: 100%;
    margin: 20px auto 0 auto;
    padding: 20px 0;
}

.chord-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
}

.chord-option .chord-btn {
    margin-bottom: 8px;
    min-width: 60px;
    width: 60px;
    height: 50px;
    padding: 8px 4px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    background: #f8f9fa;
    border: 2px solid #3498db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chord-option .chord-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.chord-option .chord-btn:active {
    transform: translateY(0);
}

.interval-label {
    font-size: 13px;
    color: #666;
    font-weight: bold;
    text-align: center;
    min-height: 20px;
    line-height: 20px;
    background: rgba(102, 102, 102, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    width: 60px;
}

/* Responsive Design - Clear Layers */
@media (max-width: 768px) {
    .game-top-layer {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .game-instructions, .game-key-display {
        display: block;
        width: 100%;
        font-size: 1rem;
        padding: 10px 15px;
        text-align: center;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .game-middle-layer {
        margin-bottom: 35px;
        padding-bottom: 25px;
    }
    
    .progression-section {
        display: block;
        width: 100%;
        padding: 12px 15px;
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .progression-label {
        font-size: 0.9rem;
    }
    
    #selected-chords {
        font-size: 1rem;
        min-width: 150px;
        padding: 6px 12px;
    }
    
    .controls-inline {
        display: block;
        width: 100%;
        text-align: center;
        padding-top: 0;
    }
    
    .controls-inline .game-btn {
        display: inline-block;
        padding: 8px 14px;
        font-size: 0.85rem;
        min-width: 120px;
        margin: 0 5px 8px 5px;
    }
    
    .game-bottom-layer {
        padding: 30px 15px;
        margin-top: 30px;
    }
    
    .chord-buttons-row {
        gap: 12px;
    }
    
    .chord-option .chord-btn {
        min-width: 50px;
        width: 50px;
        height: 45px;
        padding: 6px 3px;
        font-size: 0.85rem;
    }
    
    .interval-label {
        font-size: 11px;
        padding: 3px 4px;
        width: 50px;
    }
}

@media (max-width: 480px) {
    .game-instructions, .game-key-display {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .progression-section {
        padding: 12px 15px;
        text-align: center;
    }
    
    .controls-inline {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .progression-label {
        font-size: 0.85rem;
    }
    
    #selected-chords {
        font-size: 0.9rem;
        min-width: 120px;
        padding: 6px 10px;
    }
    
    .controls-inline .game-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 110px;
    }
    
    .game-bottom-layer {
        padding: 15px 10px;
        margin-top: 15px;
    }
    
    .chord-buttons-row {
        gap: 8px;
    }
    
    .chord-option .chord-btn {
        min-width: 45px;
        width: 45px;
        padding: 6px 2px;
        font-size: 0.75rem;
    }
    
    .interval-label {
        font-size: 10px;
        padding: 2px 3px;
        width: 45px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .game-instructions, .game-key-display {
        font-size: 0.8rem;
        padding: 6px 10px;
        margin-bottom: 8px;
    }
    
    .progression-section {
        padding: 10px 12px;
    }
    
    .progression-label {
        font-size: 0.8rem;
    }
    
    #selected-chords {
        font-size: 0.8rem;
        min-width: 100px;
        padding: 4px 8px;
    }
    
    .controls-inline .game-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
        margin: 0 2px;
    }
    
    .game-bottom-layer {
        padding: 12px 8px;
    }
    
    .chord-buttons-row {
        gap: 6px;
    }
    
    .chord-option .chord-btn {
        min-width: 40px;
        width: 40px;
        padding: 5px 1px;
        font-size: 0.7rem;
    }
    
    .interval-label {
        font-size: 9px;
        padding: 1px 2px;
        width: 40px;
    }
}

/* Guitar Tab Practice Styles */
#guitar-tab-practice-page {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tab-practice-controls {
    margin-bottom: 20px;
}

.tab-practice-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Pattern Selector */
.pattern-selector {
    text-align: center;
}

.pattern-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.pattern-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pattern-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
}

.pattern-btn.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Pattern Info */
.pattern-info {
    background: rgba(52, 152, 219, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.pattern-details {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.pattern-details p {
    margin: 0;
    font-size: 1rem;
}

/* Fretboard and Tab Container */
.fretboard-and-tab-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

/* Pattern Fretboard */
.pattern-fretboard-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.fretboard-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-color.root-note {
    background-color: #e74c3c;
}

.legend-color.fifth-note {
    background-color: #3498db;
}

.legend-color.third-note {
    background-color: #f39c12;
}

.legend-color.other-note {
    background-color: #95a5a6;
}

/* Tab Pattern Fretboard Grid */
.tab-pattern-fretboard-grid {
    display: grid;
    grid-template-columns: 30px repeat(16, 1fr);
    gap: 2px;
    background: #2c3e50;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.string-label {
    background: #34495e;
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.fret-position {
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fret-position:hover {
    background: #d5dbdb;
}

.fret-position.has-note {
    font-weight: bold;
    font-size: 0.8rem;
}

.fret-position.root-note {
    background-color: #e74c3c;
    color: white;
}

.fret-position.fifth-note {
    background-color: #3498db;
    color: white;
}

.fret-position.third-note {
    background-color: #f39c12;
    color: white;
}

.fret-position.other-note {
    background-color: #95a5a6;
    color: white;
}

.note-label {
    font-size: 0.75rem;
    font-weight: bold;
}

.fret-position.open-string {
    background-color: #bdc3c7;
    border: 2px solid #95a5a6;
}

.open-note-label {
    font-size: 0.7rem;
    font-weight: bold;
    color: #2c3e50;
}

.fret-numbers {
    display: flex;
    justify-content: space-around;
    background: #34495e;
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.fret-numbers div {
    flex: 1;
    text-align: center;
}

/* Tab Notation */
.tab-notation-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.tab-notation {
    background: #2c3e50;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    margin-bottom: 15px;
}

.tab-string-line {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: white;
}

.tab-string-label {
    color: #3498db;
    font-weight: bold;
    margin-right: 10px;
    min-width: 20px;
}

.tab-number {
    margin-right: 8px;
    font-size: 0.9rem;
    min-width: 15px;
    text-align: center;
}

.tab-number.active-note {
    background-color: #e74c3c;
    color: white;
    border-radius: 3px;
    padding: 2px 4px;
    font-weight: bold;
}

/* Tab Controls */
.tab-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.play-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
}

/* Practice Tips */
.practice-tips {
    background: rgba(46, 204, 113, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2ecc71;
}

.practice-tips h4 {
    color: #27ae60;
    margin-bottom: 15px;
}

.practice-tips ul {
    list-style: none;
    padding-left: 0;
}

.practice-tips li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.practice-tips li::before {
    content: "•";
    color: #2ecc71;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Pattern Analysis */
.pattern-analysis {
    background: rgba(155, 89, 182, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #9b59b6;
}

.pattern-analysis h4 {
    color: #8e44ad;
    margin-bottom: 15px;
}

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

.interval-group {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.interval-group h5 {
    color: #8e44ad;
    margin-bottom: 10px;
    font-size: 1rem;
}

.notes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interval-note {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.interval-note.root-note {
    background-color: #e74c3c;
    color: white;
}

.interval-note.fifth-note {
    background-color: #3498db;
    color: white;
}

.interval-note.third-note {
    background-color: #f39c12;
    color: white;
}

.interval-note.other-note {
    background-color: #95a5a6;
    color: white;
}

/* Responsive Design for Tab Practice */
@media (max-width: 768px) {
    .fretboard-and-tab-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pattern-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pattern-details {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .tab-pattern-fretboard-grid {
        grid-template-columns: 25px repeat(16, 1fr);
        gap: 1px;
    }
    
    .fret-position {
        min-height: 25px;
        font-size: 0.7rem;
    }
    
    .fretboard-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .interval-display {
        grid-template-columns: 1fr;
    }
}

/* Pattern Management Styles */
.pattern-management {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.create-pattern-btn, .manage-pattern-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.create-pattern-btn:hover, .manage-pattern-btn:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
}

.custom-pattern {
    background: linear-gradient(135deg, #9b59b6, #8e44ad) !important;
}

.custom-pattern:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98) !important;
}

.pattern-btn[data-pattern*="default"] {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
}

.pattern-btn[data-pattern*="default"]:hover {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

.default-pattern {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
}

.default-pattern:hover {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e8e8e8;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 25px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
}

.btn-cancel {
    background: #e8e8e8;
    color: #2c3e50;
}

.btn-cancel:hover {
    background: #d5dbdb;
}

/* Pattern List Styles */
.patterns-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 10px;
}

.pattern-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.pattern-item:last-child {
    margin-bottom: 0;
}

.pattern-item-info h5 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.pattern-item-info p {
    margin: 0 0 5px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.pattern-item-info small {
    color: #95a5a6;
    font-size: 12px;
}

.pattern-item-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-small {
    background: #3498db;
    color: white;
}

.btn-small:hover {
    background: #2980b9;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.no-patterns {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
}

/* Import/Export Section */
.import-export-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e8e8e8;
}

.import-export-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.import-export-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive Design for Modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        justify-content: center;
    }
    
    .pattern-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pattern-item-actions {
        align-self: stretch;
        justify-content: center;
    }
    
    .pattern-management {
        flex-direction: column;
        align-items: center;
    }
}

/* App Instructions Section */
#app-instructions {
    background: rgba(255, 255, 255, 0.95);
    border-left: 5px solid #3498db;
}

#app-instructions h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions-content {
    display: grid;
    gap: 25px;
}

.instruction-step {
    background: rgba(52, 152, 219, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid #3498db;
}

.instruction-step h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.instruction-step p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.instruction-step ul {
    padding-left: 25px;
}

.instruction-step li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.instruction-step strong {
    color: #2c3e50;
}

/* Support Section (Buy Me Coffee) */
#support-section {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    text-align: center;
    border: none;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.support-content {
    padding: 10px;
}

.coffee-message {
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Animated coffee emojis */
@keyframes coffeeFloat {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    15% { transform: translateY(-20px) rotate(-10deg) scale(1.2); }
    30% { transform: translateY(-35px) rotate(8deg) scale(1.1); }
    45% { transform: translateY(-25px) rotate(-15deg) scale(1.3); }
    60% { transform: translateY(-40px) rotate(12deg) scale(1.15); }
    75% { transform: translateY(-15px) rotate(-8deg) scale(1.25); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

@keyframes coffeeGlow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 193, 7, 0.4); 
        filter: brightness(1);
    }
    25% { 
        text-shadow: 0 0 25px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 193, 7, 0.8), 0 0 50px rgba(255, 140, 0, 0.6); 
        filter: brightness(1.3);
    }
    50% { 
        text-shadow: 0 0 35px rgba(255, 215, 0, 1.2), 0 0 50px rgba(255, 193, 7, 1), 0 0 70px rgba(255, 140, 0, 0.8); 
        filter: brightness(1.5);
    }
    75% { 
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 35px rgba(255, 193, 7, 0.7), 0 0 45px rgba(255, 140, 0, 0.5); 
        filter: brightness(1.2);
    }
}

@keyframes coffeeBounce {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(-5px) translateY(-10px); }
    50% { transform: translateX(5px) translateY(-15px); }
    75% { transform: translateX(-3px) translateY(-8px); }
}

.coffee-message::before,
.coffee-message::after {
    content: "☕";
    position: absolute;
    font-size: 2rem;
    animation: coffeeFloat 2.5s ease-in-out infinite, 
               coffeeGlow 1.8s ease-in-out infinite,
               coffeeBounce 3.2s ease-in-out infinite;
    z-index: 10;
}

.coffee-message::before {
    left: -50px;
    top: -10px;
    animation-delay: 0s, 0.3s, 0.5s;
}

.coffee-message::after {
    right: -50px;
    top: -10px;
    animation-delay: 1.2s, 1.5s, 1.8s;
}

.coffee-link-container {
    margin-top: 15px;
}

.coffee-link {
    display: inline-block;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.coffee-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.6);
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

/* Animate coffee emojis in the button */
.coffee-link {
    position: relative;
    overflow: visible;
}

@keyframes coffeeButtonFloat {
    0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); }
    25% { transform: translateY(-8px) scale(1.3) rotate(-15deg); }
    50% { transform: translateY(-15px) scale(1.5) rotate(10deg); }
    75% { transform: translateY(-5px) scale(1.2) rotate(-8deg); }
}

@keyframes coffeeButtonSpin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.2); }
    50% { transform: rotate(180deg) scale(1.1); }
    75% { transform: rotate(270deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1); }
}

.coffee-link:hover::before,
.coffee-link:hover::after {
    content: "☕";
    position: absolute;
    top: -15px;
    font-size: 1.5rem;
    animation: coffeeButtonFloat 1.2s ease-in-out infinite,
               coffeeButtonSpin 2s linear infinite;
    color: #f39c12;
    text-shadow: 0 0 15px rgba(243, 156, 18, 1), 0 0 25px rgba(255, 193, 7, 0.8);
    z-index: 20;
}

.coffee-link:hover::before {
    left: -25px;
    animation-delay: 0s, 0.2s;
}

.coffee-link:hover::after {
    right: -25px;
    animation-delay: 0.6s, 1s;
}

/* User Comments Section */
#user-comments-section {
    background: rgba(255, 255, 255, 0.95) !important;
    border-left: 5px solid #3498db !important;
}

#user-comments-section h3 {
    color: #2c3e50 !important;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-form {
    margin-bottom: 15px;
}

#user-comment {
    width: 100%;
    padding: 15px;
    border: 2px solid #d5d5d5;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

#user-comment:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.submit-comment-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.submit-comment-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.comment-note {
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
}

/* Success message for comment submission */
.comment-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

/* Star Rating System */
.rating-section {
    margin-bottom: 20px;
    text-align: center;
}

.rating-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.star-rating {
    display: inline-flex;
    gap: 5px;
    margin-bottom: 10px;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(100%);
    opacity: 0.4;
}

.star:hover,
.star.active {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.star.hover-effect {
    filter: grayscale(0%);
    opacity: 0.8;
}

.rating-text {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Featured Reviews Section */
.featured-reviews {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #3498db;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 25px;
}

.featured-reviews h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3rem;
}

.reviews-list {
    display: grid;
    gap: 15px;
}

.review-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #f39c12;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.review-location {
    font-size: 0.75rem;
    color: #27ae60;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 1.2rem;
    filter: grayscale(0%);
    opacity: 1;
}

.review-date {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-style: italic;
}

.review-text {
    color: #2c3e50;
    line-height: 1.6;
    font-size: 0.95rem;
}

.review-item.five-star {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.02) 0%, rgba(243, 156, 18, 0.02) 100%);
}

.review-item.four-star {
    border-left-color: #f39c12;
    background: rgba(243, 156, 18, 0.02);
}

/* Empty state for reviews */
.reviews-empty {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
}

/* Floating Guitar Images - Main Page Only */
.floating-guitars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-guitar {
    position: absolute;
    width: 300px;
    height: auto;
    opacity: 0.2;
    pointer-events: none;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.1));
}

@keyframes floatGuitar1 {
    0% { transform: translate(10vw, 20vh) rotate(0deg) scale(0.8); }
    25% { transform: translate(85vw, 15vh) rotate(45deg) scale(1.1); }
    50% { transform: translate(80vw, 70vh) rotate(90deg) scale(0.9); }
    75% { transform: translate(15vw, 75vh) rotate(135deg) scale(1.2); }
    100% { transform: translate(10vw, 20vh) rotate(180deg) scale(0.8); }
}

@keyframes floatGuitar2 {
    0% { transform: translate(90vw, 10vh) rotate(180deg) scale(1); }
    25% { transform: translate(5vw, 25vh) rotate(225deg) scale(0.7); }
    50% { transform: translate(20vw, 80vh) rotate(270deg) scale(1.3); }
    75% { transform: translate(75vw, 60vh) rotate(315deg) scale(0.9); }
    100% { transform: translate(90vw, 10vh) rotate(360deg) scale(1); }
}

@keyframes floatGuitar3 {
    0% { transform: translate(50vw, 5vh) rotate(90deg) scale(0.9); }
    25% { transform: translate(95vw, 40vh) rotate(135deg) scale(1.1); }
    50% { transform: translate(10vw, 50vh) rotate(180deg) scale(0.8); }
    75% { transform: translate(60vw, 85vh) rotate(225deg) scale(1.2); }
    100% { transform: translate(50vw, 5vh) rotate(270deg) scale(0.9); }
}

@keyframes floatGuitar4 {
    0% { transform: translate(25vw, 80vh) rotate(270deg) scale(1.1); }
    25% { transform: translate(85vw, 85vh) rotate(315deg) scale(0.8); }
    50% { transform: translate(90vw, 30vh) rotate(0deg) scale(1.3); }
    75% { transform: translate(5vw, 10vh) rotate(45deg) scale(0.9); }
    100% { transform: translate(25vw, 80vh) rotate(90deg) scale(1.1); }
}

@keyframes fadeInGuitar {
    0% { opacity: 0; }
    100% { opacity: 0.2; }
}

.floating-guitar:nth-child(1) {
    animation: floatGuitar1 45s ease-in-out infinite, fadeInGuitar 0.5s ease-in forwards;
    animation-delay: 0s, 0s;
    transform: translate(10vw, 20vh) rotate(0deg) scale(0.8);
    opacity: 0;
}

.floating-guitar:nth-child(2) {
    animation: floatGuitar2 52s ease-in-out infinite, fadeInGuitar 0.5s ease-in forwards;
    animation-delay: 8s, 8s;
    transform: translate(90vw, 10vh) rotate(180deg) scale(1);
    opacity: 0;
}

.floating-guitar:nth-child(3) {
    animation: floatGuitar3 48s ease-in-out infinite, fadeInGuitar 0.5s ease-in forwards;
    animation-delay: 15s, 15s;
    transform: translate(50vw, 5vh) rotate(90deg) scale(0.9);
    opacity: 0;
}

.floating-guitar:nth-child(4) {
    animation: floatGuitar4 55s ease-in-out infinite, fadeInGuitar 0.5s ease-in forwards;
    animation-delay: 23s, 23s;
    transform: translate(25vw, 80vh) rotate(270deg) scale(1.1);
    opacity: 0;
}

/* Hide floating guitars on other pages */
.hidden .floating-guitars {
    display: none !important;
}

/* Mobile adjustments for floating guitars */
@media (max-width: 768px) {
    .floating-guitar {
        width: 200px;
        opacity: 0.08;
    }
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .instruction-step {
        padding: 15px;
    }
    
    .coffee-link {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .coffee-message {
        font-size: 1rem;
    }
    
    #user-comment {
        padding: 12px;
    }
    
    .star {
        font-size: 1.8rem;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .featured-reviews {
        padding: 20px 15px;
    }
    
    .review-item {
        padding: 15px;
    }
}