/* Projects Dropdown Menu Styles */

.projects-menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

.projects-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff38D !important;
    border: 1px solid #fff38D !important;
    border-radius: 8px;
    color: black !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.projects-menu-btn:hover {
    background: #f5e65c !important;
    border-color: #f5e65c !important;
    transform: translateY(-1px);
}

.projects-menu-btn.active {
    background: #fff38D !important;
    border-color: #fff38D !important;
}

.layers-icon {
    opacity: 1;
}

.projects-count {
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent, #216aa4);
    color: #0a0a0a;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
}

.projects-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    max-height: 600px;
    background: var(--bg, #0f0f0f);
    border: 1px solid var(--border-color, #333);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.2s ease;
    overflow: hidden;
}

.projects-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#project-sidebar-dropdown {
    width: 100%;
    height: 100%;
    max-height: 600px;
    overflow-y: auto;
}

/* Ensure dropdown sidebar styling matches existing sidebar */
#project-sidebar-dropdown .project-sidebar {
    border: none;
    background: transparent;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .projects-dropdown {
        width: calc(100vw - 32px);
        max-width: 360px;
        max-height: 70vh;
    }
}

/* Hide the old sidebar */
#project-sidebar {
    display: none !important;
}
