body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem 2rem 2rem;
    /* min-height: 100vh; */
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.home-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Theme Toggle */
.toggle-container {
    /* position: fixed; */
    /* top: 1rem; */
    right: 1rem;
    z-index: 1000;
}

.toggle {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.toggle-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 70px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    padding: 0 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.toggle-label i {
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.toggle-label .fa-sun {
    color: #ffd700;
    transform: scale(1);
}

.toggle-label .fa-moon {
    color: #a0a0a0;
    transform: scale(0.1);
}

.toggle:checked+.toggle-label .fa-sun {
    color: #a0a0a0;
    transform: scale(0.1);
}

.toggle:checked+.toggle-label .fa-moon {
    color: #4a90e2;
    transform: scale(1);
}

.toggle-label::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    left: 3px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.toggle:checked+.toggle-label::before {
    transform: translateX(34px);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 0;
}

.input-section,
.output-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 500px;
}

.input-section h2,
.output-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ddd;
    text-align: center;
}

/* Chord container holds all chord groups */
#chordContainer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Individual chord group (generated by JS) */
.chord-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

/* Individual chord button */
.chord {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    user-select: none;
}

.chord:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chord.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #764ba2;
    box-shadow: 0 4px 16px rgba(118, 75, 162, 0.4);
}

/* Output section */
#output {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 600px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
    backdrop-filter: blur(10px);
}

#output:empty::before {
    content: "no valid capo positions found for current selection";
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
        gap: 2rem;
    }

    .input-section,
    .output-section {
        max-width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    .top-nav {
        top: 0.5rem;
        right: 0.5rem;
    }

    .toggle-container {
        top: 0.5rem;
        left: 0.5rem;
    }
}