/**
 * Sidebar Dropdown Styles
 * Multi-level dropdown navigation for sidebar component
 */

.sidebar-dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-toggle .dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
    margin-left: auto;
    color: black;
}

.sidebar-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 4px 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.sidebar-dropdown.open .dropdown-menu {
    max-height: 300px;
    opacity: 1;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px 8px 32px;
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px 8px;
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.08);
    color: black;
    transform: translateX(4px);
}

.dropdown-item.active {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    font-weight: 600;
}

.dropdown-item .nav-icon {
    font-size: 16px;
    margin-right: 8px;
}

.dropdown-item .nav-text {
    flex: 1;
}

/* Mobile responsiveness - sm breakpoint and below */
@media (max-width: 640px) {
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.03);
    }

    .dropdown-item {
        padding: 14px 16px 14px 32px; /* Larger touch targets */
        min-height: 44px; /* WCAG touch target minimum */
    }

    .dropdown-toggle {
        min-height: 56px; /* Touch-friendly */
        display: flex;
        align-items: center;
    }
}
