nav {
    padding: 1rem;
    margin-bottom: 2rem;
    background-color: var(--purple-waves-0);
}

nav a {
    margin-right: 1rem;
    color: var(--mauve-sky-0);
}

nav a.active {
    font-weight: 600;
    color: var(--dream-accents-1);
}

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

.section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section h3 {
    margin-top: 2.5rem;
}

.color-swatch {
    display: inline-block;
    width: 100px;
    height: 100px;
    margin-right: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    position: relative;
}

.color-swatch-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.25rem;
    font-size: 0.8rem;
    text-align: center;
}

.color-grid,
.button-group,
.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
}

.form-row {
    margin-bottom: 1rem;
}

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

.section {
    border-bottom: 1px solid var(--purple-waves-3);
}

.color-swatch {
    border: 1px solid var(--purple-waves-3);
}

.color-swatch-label {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 4rem; /* Position below the horizontal navigation */
    left: 0;
    width: 240px;
    height: calc(100% - 4rem); /* Adjust height to account for nav */
    background-color: var(--purple-waves-0);
    z-index: 1;
    overflow-y: auto;
    border-right: 1px solid var(--purple-waves-3);
}

.sidebar-content {
    padding: 1.5rem;
}

.sidebar h3 {
    color: var(--dream-accents-1);
    margin-bottom: 1rem;
}

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

.sidebar li {
    margin-bottom: 0.25rem;
}

.sidebar li ul {
    margin-left: 1rem;
}

.sidebar a {
    color: var(--mauve-sky-0);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar a:hover {
    background-color: var(--purple-waves-1);
    color: var(--dream-accents-2);
}

/* Adjust main content area to account for sidebar */
.container.with-sidebar {
    margin-left: 240px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .container {
        padding: 0 1rem 1rem;
    }
    
    /* Sidebar adjustments */
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding-top: 0;
        border-right: none;
        border-bottom: 1px solid var(--purple-waves-3);
    }
    
    .sidebar-content {
        padding: 1rem;
    }
    
    .sidebar ul ul {
        margin-left: 1rem;
    }
    
    .container.with-sidebar {
        margin-left: 0;
    }
    
    /* Other UI components */
    .color-swatch {
        width: 80px;
        height: 80px;
    }
    
    .color-grid {
        justify-content: center;
    }
    
    .section {
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
}
