/* dropdown.css - custom dropdown styles */

.astryx-dropdown {
    position: relative;
}

.astryx-dropdown-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s;
}

.astryx-dropdown-trigger:hover {
    border-color: var(--primary-color);
}

.astryx-dropdown-arrow {
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

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

.astryx-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    max-height: 360px;
    overflow-y: auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.astryx-dropdown.open .astryx-dropdown-menu {
    display: block;
}

.astryx-dropdown-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.astryx-dropdown-item:hover {
    background: var(--card-hover);
}

.astryx-dropdown-item input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
}

.astryx-dropdown-item label {
    cursor: pointer;
    margin: 0;
}
