h1 {
    margin: 20px 0;
    font-size: 1.8em;
}

.chord-selector {
    background: #111111;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 1px #000000;
}

.section-title {
    color: #cc9966;
    font-size: 1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

button {
    background: #222222;
    color: #cccccc;
    border: 2px solid #333333;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover {
    background: #cc9966;
    color: #000000;
    border-color: #cc9966;
}

button.active {
    background: #cc9966;
    color: #000000;
    border-color: #cc9966;
}

.chord-display {
    background: #111111;
    padding: 25px;
    border-radius: 5px;
    margin-bottom: 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chord-name {
    font-size: 2em;
    color: #cc9966;
    margin-bottom: 15px;
    text-align: center;
}

.chord-diagram {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.fretboard {
    display: inline-block;
}

.string {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.string-label {
    width: 30px;
    text-align: right;
    margin-right: 10px;
    font-weight: bold;
    color: #333333;
    font-size: 14px;
}

.fret {
    width: 40px;
    height: 32px;
    border: 2px solid #333333;
    border-left: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fret:first-of-type {
    border-left: 3px solid #000000;
}

.finger {
    width: 22px;
    height: 22px;
    background: #cc9966;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 11px;
    z-index: 10;
}

.muted, .open {
    position: absolute;
    top: -20px;
    font-weight: bold;
    font-size: 14px;
}

.muted {
    color: #ff0000;
}

.open {
    color: #00cc00;
}

.fret-numbers {
    display: flex;
    margin-left: 40px;
    margin-top: 3px;
}

.fret-number {
    width: 40px;
    text-align: center;
    font-size: 11px;
    color: #666666;
}

.play-button {
    background: #cc9966;
    color: #000000;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    margin-top: 15px;
}

.play-button:hover {
    background: #dda977;
}

.play-button:active {
    transform: scale(0.98);
}

.chord-info {
    text-align: center;
    color: #999999;
    margin-top: 15px;
    font-size: 0.85em;
}

.placeholder {
    text-align: center;
    color: #666666;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .button-group {
        justify-content: center;
    }

    button {
        flex: 1 1 calc(33.33% - 10px);
        min-width: 80px;
    }

    .chord-name {
        font-size: 2em;
    }

    .fret {
        width: 40px;
        height: 35px;
    }

    .fret-number {
        width: 40px;
    }
}

/* Tab Navigation */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #333333;
}

.tab {
    background: #222222;
    color: #cccccc;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
}

.tab:hover {
    background: #333333;
}

.tab.active {
    background: #cc9966;
    color: #000000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Chord Progression Styles */
.progression-builder {
    background: #111111;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.progression-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 60px;
    background: #000000;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.progression-chord {
    background: #cc9966;
    color: #000000;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: move;
    user-select: none;
}

.progression-chord.dragging {
    opacity: 0.5;
}

.progression-chord .remove {
    cursor: pointer;
    font-weight: bold;
}

.progression-chord .drag-handle {
    margin-right: 5px;
    color: #666666;
}

/* Multiple progressions styles */
.progression-section {
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;
    cursor: move;
    transition: border-color 0.2s;
}

.progression-section.active {
    border-color: #cc9966;
}

.progression-section.dragging {
    opacity: 0.5;
}

.progression-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 5px;
    cursor: pointer;
}

.progression-header .drag-handle {
    color: #666666;
    font-size: 1.2em;
}

.progression-type {
    background: #222222;
    color: #cc9966;
    border: 1px solid #444444;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 0.75em;
    font-weight: 600;
    cursor: pointer;
}

.delete-prog-btn {
    margin-left: auto;
    background: #ff6666;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
}

.delete-prog-btn:hover {
    background: #ff4444;
}

.progression-chords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px;
}

.progression-chord-inline {
    background: #cc9966;
    color: #000000;
    padding: 6px 12px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: move;
    user-select: none;
}

.progression-chord-inline.dragging {
    opacity: 0.5;
}

.progression-chord-inline .chord-drag-handle {
    color: #666666;
    font-size: 0.9em;
}

.progression-chord-inline .remove {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
}

.empty-progression-small {
    color: #666666;
    font-size: 0.85em;
    font-style: italic;
}

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

.progression-controls button {
    flex: 1;
    min-width: 120px;
    padding: 10px 25px;
    font-size: 1em;
}

.tempo-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.tempo-control input {
    flex: 1;
    max-width: 250px;
}

.tempo-control select {
    flex: 1;
    max-width: 350px;
    background: #222222;
    color: #cccccc;
    border: 2px solid #333333;
    padding: 10px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.tempo-control select:hover {
    border-color: #cc9966;
}

.empty-progression {
    color: #666666;
    text-align: center;
    padding: 20px;
}

/* Combined Layout */
.main-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.left-panel {
    flex: 1;
    min-width: 300px;
}

.right-panel {
    flex: 0 0 350px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.mobile-preview {
    display: none;
}

.chord-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.chord-actions button {
    flex: 1;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .right-panel {
        display: none;
    }

    .mobile-preview {
        display: flex;
        margin: 20px auto;
        max-width: 400px;
        order: 2;
    }

    .left-panel {
        display: flex;
        flex-direction: column;
    }

    .chord-selector {
        order: 1;
    }

    .progression-builder {
        order: 3;
    }
}

/* Custom tooltip styling */
.preset-tooltip {
    position: fixed;
    background: #222222;
    color: #cccccc;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9em;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid #444444;
    max-width: 300px;
    display: none;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    background-color: #111111;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #444444;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    color: #cccccc;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    color: #cc9966;
    margin-top: 0;
}

.modal-content h3 {
    color: #cc9966;
    margin-top: 20px;
    font-size: 1.1em;
}

.modal-content p {
    line-height: 1.6;
}

.modal-content ul {
    line-height: 1.8;
}

.close {
    color: #999999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #cc9966;
}

.about-link {
    color: #cc9966;
    text-decoration: none;
    font-size: 0.9em;
    margin-left: 10px;
    cursor: pointer;
}

.about-link:hover {
    text-decoration: underline;
}
