/* Guitar Scale Generator */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 16px 24px;
    background: #f5f5f5;
    color: #222;
    min-width: 1140px;
    max-width: 1140px;
}

h1 {
    font-size: 1.5rem;
    margin: 0 0 16px;
}

h2 {
    font-size: 1rem;
    margin: 0 0 8px;
    color: #555;
}

/* Control rows */

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

select {
    padding: 5px 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #666;
}

label {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
}

input[type="radio"],
input[type="checkbox"] {
    cursor: pointer;
}

/* Add fretboard button */

button {
    padding: 5px 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
}

button:hover:not(:disabled) {
    background: #eee;
}

button:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Fretboard container */

#fretboards {
    margin: 20px 10px;
}

.fretboard-entry {
    position: relative;
    display: block;
    margin-bottom: 10px;
    cursor: grab;
}

.fretboard-entry.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.fretboard-entry.drag-over {
    outline: 2px dashed #888;
    border-radius: 4px;
}

.fretboard-controls {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fretboard-remove,
.fretboard-move {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
}

.fretboard-move.active {
    background: #f99;
    border-color: #c44;
}

/* Info section: related scales + piano keyboard */

.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 16px;
}

#next div,
#contain div {
    padding: 2px 0;
    font-size: 0.9rem;
    color: #333;
}

/* Footer */

.footer {
    border-top: 1px solid #ccc;
    text-align: center;
    margin-top: 20px;
    padding-top: 8px;
    color: #999;
    font-size: 0.85rem;
}

.footer a {
    color: #999;
}
